title: Compiler in Java surprisingly hangs up while attempting to parse a string value, 2.2250738585072012e-308 to double
body: <p>I have tried the following code in NetBeans 6.9.1, it should display the value on the console but the compiler surprisingly hangs up. The code snippet is as follows.</p>
  
  <pre><code>package demo;
  
  public class Main
  {
      public static void main(String[] args) 
      {
          System.out.println("Test Demo:");
          double d = Double.parseDouble("2.2250738585072012e-308");
          //double d = Double.parseDouble("30000.2250738585072012e-308"); Works with no hangs up.
          System.out.println("Value = " + d);
      }
  }
  </code></pre>
  
  <hr>
  
  <p>It may not be the case of the range of double in Java. If the specified value is out of the range, it should throw some exception or result in some error but it hangs up, instead. What should actually be the reason?</p>