News

The "Understanding Java threads" series concludes by uncovering some of the loose ends of threading: thread groups, volatility, thread-local variables, timers, and thread death.
Learn about the new Java 10 "var" type, and experiment using JShell with this hands-on tutorial on how to reduce boilerplate code using new type inference for local variables.
JEP 429, Extent-Local Variables (Incubator), was promoted from its JEP Draft 8263012 to Candidate status. This incubating JEP, under the umbrella of Project Loom, proposes enabling the sharing of ...
Tip: Unlike class and instance field variables, threads cannot share local variables and parameters. The reason: Local variables and parameters allocate on a thread’s method-call stack.
For example in Java, classes, interfaces and enums should all be written in Pascal case. Local variables declared within the body of a Java program should be written in lower camel case.