title: How does java detects Checked Exceptions?
body: <p>If i write things like this :</p>
  
  <pre><code>public static void main(String[] args) {
      try {
      } catch (MalformedURLException e) { 
          e.printStackTrace()
      };
  }
  </code></pre>
  
  <p>Java compiler shows compilation error at catch clause of <code>MalformedURLException</code>. If i insert line
      <code>URL url = new URL("HI");</code> in try block , complaining stops. I thought java must be binding these checked exceptions with package. Then i tried another class of java.net package by inserting "   <code>CookieManager manager = new CookieManager();</code> "  only in try block. Compilation error again starts.</p>
  
  <p>So how does JVM bind these checked exceptions with java classes for compilation time errors like this?</p>