1.

What is the output of this program? class Compsci { Compsci()throws IOException { } } class Bits extends Compsci { Bits() { } public static void main(String[]args) { } }

A. Compile time error
B. Run time error
C. Compile and runs fine
D. Unreported exception java.io.IOException in default constructor
Answer» B. Run time error


Discussion

No Comment Found