title: When do I have to surround with try/catch?
body: <p>I have some piece of code:</p>
  
  <pre><code>public static void a() throws NumberFormatException {
          return;
      }
  
      public static void b() throws InterruptedException{
          return;
      }
  
      public static void main(String[] args) {
  
          a();
          b();
  
      }
  </code></pre>
  
  <p>And Eclipse says that I have to surround try/catch to function call b(), but I do not have to do that with a() call. Why? How to make function make to surround with try and catch when is called?</p>