title: Will catching an exception catch a parent class of that exception
body: <p>In Java I have a method catching an exception 'ChildException' that extends 'NewException'. If that method calls another method that throws a 'NewException' and let's say something happens and throws it; will the caller method that catches a child class of the exception thrown catch it?</p>
  
  <pre><code>public MethodCatchingChildException
  {
    try
    {
       //stuff
       callingMethodThrowingNewException();
       //stuff
    }
    catch (ChildException e)
    {
       //stuff
    }
  }
  </code></pre>
  
  <p>So will the exception from callingMethodThrowingNewException get caught in MethodCatchingChildException?</p>