Java 10 var
Jump to navigation
Jump to search
Internal
Overview
The feature behind the Java 10 new keyword var is called local variable type inference.
var and Code Readability
Type inference reduces the amount of time it takes to write Java code, but it does not necessarily improve its readability. Some say that developers spend much more time reading source coding than writing it, so probably the amount of time it takes to write the code should be optimized in favor of readability.