Java 10 will be released in March 2018 and it comes with local-variable type inference, which means we can use var
instead of a type name when declaring local variables.
In this video I tell you how to use var
, where it works and where it doesn't (and why), and how it might impact readability.
First contact with var
in Java 10
//
How to use var
, where it works and where it doesn't (and why), and how it might impact readability