interface I {
public void print() throws IOException;
}
class A implements I{
public void print() throws NullPointerException{
System.out.println("A");
}

IOExceptionとNullPointerExceptionに継承関係がないのにエラーが起きないのはなぜ?