title: Using throws keyword and handling it in the main rather than handling it in the method in which it occurs
body: <p>If I add the throws keyword in the method signature and handle it in my main() inside my TestClass{}, is it a good approach or should I handle the exception in the method in which it occurs fooBar(), which approach is recommended or what are the trade-offs between the two. Sorry this question might seem a little weird, just a newbie in Java.</p>
  
  <pre class="lang-java prettyprint-override"><code>public class Foo {
  
      //private fields
  
      public Foo() {
          //ctor
      }
  
      //accessors and mutators
  
      //method that throws exception
      public void fooBar() throws FooBarException {
          throw new FooBarException();
      }
  
  }
  </code></pre>