The Java try with resources construct, AKA Java try-with-resources, is an exception handling mechanism that makes it possible to automatically close resources like an InputStream or a JDBC Connection when you are done with them. To do so, you must open and use the resource within a Java try-with-resources block. When the execution leaves the try-with-resources block, any resource opened within the try-with-resources block is automatically closed, regardless of whether any exceptions are thrown either from inside the try-with-resources block, or when attempting to close the resources.
Here is a textual version of this Java Try With Resources tutorial:
http://tutorials.jenkov.com/java-exception-handling/try-with-resources.html
...
https://www.youtube.com/watch?v=GBtQW3XF3Lg
http://tutorials.jenkov.com/svg/svg-coordinate-system.html The SVG coordinate system is different from a normal, cartesian coordinate sysem which you know from your math classes. The SVG coordinate system (like most computer graphics coordinate systems) has it Y-axis reversed, so that when Y-coordinates increases, points move down on the screen instead of up as in a cartesian coordinate system.
...
https://www.youtube.com/watch?v=50Q4x3u1H2A
http://tutorials.jenkov.com/svg/rect-element.html Click the link too see the companion SVG rect tutorial. The rect element draws rectangles inside SVG images. The rect element can draw rounded corners, dashed stroke, transparent fill and more.
...
https://www.youtube.com/watch?v=CSPVW1YOrcY
A Java enum is a mechanism for creating a collection of constants in Java. A Java enum is short for an "enumeration of constants". Typically you will create an enum containing related constants, e.g. HIGH, MEDIUM and LOW. This video explains how Java enums works.
If you prefer a textual Java enum tutorial, I have one here:
http://tutorials.jenkov.com/java/enums.html
...
https://www.youtube.com/watch?v=1612Ngij7_c
The Java Queue interface represents a data structure where you add elements to the end of the queue, and remove them from the beginning of a queue. This is similar to how a queue in a supermarket works. Customers enqueue themselves at the end of the queue, and are served one by one from the beginning of the queue.
Chapters
0:00 Java Queue introduction
1:50 Java Queue implementations
3:17 Java Queue generic types
4:30 Insert elements into Java Queue
5:02 Take elements from Java Queue
5:39 Peek at first element in Queue without removing it
6:20 Get Queue size
7:05 Remove all elements from Java Queue
7:59 Check if Java Queue contains a given element
8:48 Iterate elements in Java Queue
Java Queue tutorial - textual version:
http://tutorials.jenkov.com/java-collections/queue.html
Java Deque tutorial - textual version:
http://tutorials.jenkov.com/java-collections/deque.html
Java Queue tutorial - textual version
http://tutorials.jenkov.com/java-collections/queue.html
Java Queue tutorial - video version
https://www.youtube.com/watch?v=Gpu52H4yCMM
...
https://www.youtube.com/watch?v=Gpu52H4yCMM
With the addition of Virtual Threads to Java, a special Java ExecutorService implementation was also added which executes every single task submitted to it using a separate virtual thread. In this video I show how to create and use a Java ExecutorService using virtual threads internally.
Twitter: @jjenkov
LinkedIn: https://www.linkedin.com/in/jakob-jenkov-4a3a8/
If you are new to Java Virtual Threads - here is my Java Virtual Thread introduction :
Text:
https://jenkov.com/tutorials/java-concurrency/java-virtual-threads.html
Video:
https://www.youtube.com/watch?v=kirhhcFAGB4&list=PLL8woMHwr36EDxjUoCzboZjedsnhLP1j4&index=4
Java ExecutorService Videos:
https://www.youtube.com/watch?v=Nb85yJ1fPXM&list=PLL8woMHwr36EDxjUoCzboZjedsnhLP1j4&index=15
https://www.youtube.com/watch?v=MB_qCXBSgK0&list=PLL8woMHwr36EDxjUoCzboZjedsnhLP1j4&index=16
Java Concurrency tutorials:
Text:
https://jenkov.com/tutorials/java-concurrency/index.html
Video:
https://www.youtube.com/watch?v=mTGdtC9f4EU&list=PLL8woMHwr36EDxjUoCzboZjedsnhLP1j4&index=1
...
https://www.youtube.com/watch?v=N2sskKGnCqc
http://tutorials.jenkov.com/svg/polyline-element.html The SVG polyline element can draw multiple lines connected to each other, by specifying a list of points between which the lines are drawn.
...
https://www.youtube.com/watch?v=6sGpaZih3Yc
http://tutorials.jenkov.com/java-performance/micro-batching.html
Micro batching is a technique where multiple incoming tasks are grouped into small batches when executed. Micro batching increases throughput of a system without decreasing latency too much, as long as the batch sizes and batch cycles are small. Having a variable batch cycle can enable a system to adapt the batch size to the incoming work load.
...
https://www.youtube.com/watch?v=bozAoSIoQpU
CPU cache coherence impacts how the Java concurrency features such as the Java volatile and synchronized block features work. This video explains how Java volatile and synchronized "interact" with the CPU cache coherence.
Basically, what happens is that when a Java thread writes to a Java volatile variable, or a Java thread exits a synchronized block, the Java VM flushes any thread visible variables from CPU registers to main memory. The hardware may choose only to flush the variables into the CPU cache, and then rely on its Cache coherence strategy to make sure those variables are still visibles to other CPUs. Eventually the hardware will flush the variables to main RAM - when the CPU cache lines containing the variables are needed for other data.
Java Concurrency + Cache Coherence - text:
http://tutorials.jenkov.com/java-concurrency/cache-coherence-in-java-concurrency.html
Java Concurrency Playlist:
https://www.youtube.com/playlist?list=PLL8woMHwr36EDxjUoCzboZjedsnhLP1j4
...
https://www.youtube.com/watch?v=nNXkzDS6dOg