Rethrow exception, no try...catch : try catch « Statements « SCJP






import java.awt.AWTException;
import java.io.IOException;

public class MainClass {
  public static void main(String[] argv) {
    System.out.println();
  }

  public void throwsOne() throws IOException {
    throwsTwo();

  }

  private static synchronized void throwsTwo() throws IOException, AWTException {
    ;
  }

}
Unhandled exception type AWTException








5.9.try catch
5.9.1.Exceptions come in two flavors: checked and unchecked.
5.9.2.A handler for a supertype of the exception.
5.9.3.Multiple catch Clauses and Work with finally
5.9.4.A try block may contain code that throws different exception types.
5.9.5.Rethrow exception, no try...catch