What is faster, try catch or if-else in java (WRT performance)
<p>What is faster:</p>

<pre><code>try {
  n.foo();
} 
catch(NullPointerException ex) {
}
</code></pre>

<p>or</p>

<pre><code>if (n != null) n.foo();
</code></pre>
