您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ThrowsClause.java 250B

1234567891011121314
  1. class C {
  2. public void m() throws Integer { } //ERROR Integer is not a Throwable
  3. public C() throws C { } //ERROR C is not a Throwable
  4. }
  5. class Sup {
  6. public void m() {}
  7. }
  8. class Sub extends Sup {
  9. public void m() throws Exception {}
  10. }