Java 10 Local Variable Type Inference with Examples
- Java has var style declarations with java 10.
- It allows to declare a local variable without specifying its type.
- The type of variable will be inferred from type of actual object created.
All var examples including with fail cases in this repository.