title: Concatenating null strings in Java
body: <p>Why does the following work?  I would expect a <code>NullPointerException</code> to be thrown.</p>
  
  <pre><code>String s = null;
  s = s + "hello";
  System.out.println(s); // prints "nullhello"
  </code></pre>