> so essentially still is object nonetheless
http://www.c2.com/cgi/wiki?ClosuresAndObjectsAreEquivalent // this hack is gross
final String[] val = new String[1];
Callable func = () -> val[0] = "Hello";
func.call();
System.out.print(val[0]);Kotlin has quite a lot of hidden treasures in it, typically at the intersection points of several features. People who think of it as a better Java, or something Java can easily catch up with, should take a closer look.
That said, I agree with you that Java does not have first class functions. They have something tacked on that is nowhere as elegant and lacks full support.
On the other hand, not every language that lets you define functions outside of classes lets you treat them like objects. C for example is generally not considered a language with true first class functions because it doesn't allow passing nested ones without additional support within the chosen complier.
In addition, because the code is inlined it can use the actual type of generic arguments. Not sure when that is useful.