null pointer exception in below code
<p>In below code last sop is not printed having</p>

<pre><code>String A=null;

if (A.contains("xyz")) {
    System.out.println("loop1");
}
System.out.println(A);
</code></pre>
