DEV Community

Discussion on: Does the `var` keyword affect performance in Java?

Collapse
 
cyberhck profile image
Nishchal Gautam

TIL: there's a var keyword in Java which does type inference, last time I was doing java, there wasn't, when did they introduce this?

Collapse
 
rvictorino profile image
Robin Victorino

Type inference with var keyword has been introduced in Java 10 :)

developer.oracle.com/java/jdk-10-l...
openjdk.java.net/jeps/286