title: Why Double.parseDouble(null) and Integer.parseInt(null) throw different exceptions?
body: <p>The documentation says that there are two types of exceptions for <code>Double.parseDouble()</code> and one for <code>Integer.parseInt()</code>, but it seems inconsistent:</p>
  
  <pre><code>Integer.parseInt(null); // throws java.lang.NumberFormatException: null
  
  Double.parseDouble(null); // throws java.lang.NullPointerException
  </code></pre>