title: Stringification of null in Java
body: <p>Consider</p>
  
  <pre><code>public String toString()
  {
      return foo + bar;
  }
  </code></pre>
  
  <p>where <code>foo</code> and <code>bar</code> are both fields of the class.</p>
  
  <p>If <code>foo</code> and <code>bar</code> are either or both null, does the JLS guarantee that the string <code>(null)</code> is returned for each field, or does it reserve the right to throw an NPE?</p>