Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
What's new in Java 12, 13 and 14, part II (java.christmas)
12 points by cstuder on Dec 19, 2019 | hide | past | favorite | 3 comments


"Helpful NullPointerException" is a game changer. I haven’t tried it yet, but from the looks of it this seems to be a good enough reason to upgrade to Java 14 by itself.



I wish they changed the spec so iterating over a null Iterable would not throw an NPE:

Iterable items = null;

for(Object x: items)

{

   // will not enter the loop

}




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: