fork download
  1. class A {A() throws Exception {}} // 1
  2. class B extends A {B() throws Exception {}} // 2
  3. class C extends A {C() {}} // 3
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:3: error: unreported exception Exception; must be caught or declared to be thrown
class C extends A {C() {}} // 3
                       ^
1 error
stdout
Standard output is empty