Why can't the var keyword in Java be assigned a lambda expression? – stackoverflow.com

It is allowed to assign var in Java 10 with a string like: var foo = "boo"; while it is not allowed to assign it with a lambda expression such as: var predicateVar = apple -> ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Why can't the var keyword in Java be assigned a lambda expression? – stackoverflow.com"