1 java javadoc exception
我很好奇是否应该throws ExceptionClass在方法签名后添加或不添加.(ExceptionClass扩展RuntimeException)
throws ExceptionClass
例如:
public void foo() // throws ExceptionClass { // ... throw new ExceptionClass(""); }
ass*_*ias 6
如果使用JDK作为指导,则RuntimeException不在方法签名中,而是在javadoc中记录.例如,您可以查看集合.
归档时间:
12 年,4 月 前
查看次数:
3503 次
最近记录: