loading...

re: Better Null-Checking in Java VIEW POST

FULL DISCUSSION
 

Tip: the first case, where null checks are used to handle resources, can usually be avoided by using a try-with-resources statement, available since Java 7. An example is available in the preceding section of the Java tutorial that is linked.

code of conduct - report abuse