r/java • • Mar 09 '16

var keyword proposed for Java

http://openjdk.java.net/jeps/286
240 Upvotes

312 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Mar 09 '16

[deleted]

8

u/diroussel Mar 09 '16

The type of the variable will be the type of the right hand side. No confusion.

0

u/[deleted] Mar 09 '16

[deleted]

2

u/diroussel Mar 10 '16

I got that. If want to specify a variable of not of the type of the right hand side then don't use var. This is not a problem.