New Java 10 Language Feature: Local-Variable Type Inference (var)!
Published in
7 min readNov 15, 2017
Per the rolling release cycle promise, JDK 10 is schedule to be released on March 20th, 2018.
Not Caught up to Java 9? Learn more below:
While it is not expected to be a major feature release, so far, it includes a feature that I find invaluable for clearing up java verbosity: Local-Variable Type Inference!
Now we can have code like this! :
var x = new HashMap<String,Integer>();
//inferred to be HashMap<String,Integer>