疑惑
public interface xx{
public void method();
}
public interface xx{
public void method() throws Exception;
}
疑惑
a
public interface xx{
public void method() throws SpecificException
}
ps
b
自定義抽象異常
public interface xx{
public void method() throws CustomAbstractException;
}
直接拋出Exception
public interface xx{
public void method() throws Exception;
}
From:http://tw.wingwit.com/Article/program/Java/hx/201311/25623.html