News

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.
A Java var keyword example As you can see from that simple code snippet, traditionally developed Java code lends itself to verbosity. But with the use of the var reserved work and the type inference, ...
Java SE 10 (March 2018) introduced type inference for local variables. Java Language Architect Brian Goetz explains the feature.
New features like var, auto-compile, text blocks, record classes, and more are shifting Java in subtle but powerful ways—toward a more flexible, dynamic future.