Checked and Unchecked Exceptions - Java Quiz Question


Which of the following is/are incorrect?

1. class New1Exception extends Exception { } // this will create Checked Exception
2. class NewException extends IOExcpetion { } // this will create Checked Exception
3. class NewException extends NullPonterExcpetion { } // this will create Unchecked Exception


A
1 only
B
2 only
C
3 only
D
1 and 2
E
2 and 3
F
All of them are correct