Which one is faster:
Either this
try { n.foo(); } catch(NullPointerException ex) { }
or
if (n != null) n.foo();
This issue has discussed recently by Dr. Heinz:
http://javaspecialists.eu/webinars/recordings/if-else-npe-teaser.mov