36
It is usually expensive to handle exceptions. The VM Spec might give you some insight into how much, but in the above case if (n != null) n.foo(); is faster.
Although I agree with Mitch Wheat regarding the real question is correctness.
@Mitch Wheat - In his defense this is a pretty contrived example. :)