1) The classes that extend Throwable class except RuntimeException and Error are known as?
A) Checked ExceptionB) Unchecked Exception
C) Error
D) None of the above
2) Exception Handling is a mechanism to handle runtime errors?
A) True
B) False
3) These five keywords are used in try, catch, finally, throw, and throws?
A) Exception Handling
B) String Handling
C) Event Handling
D) None of the above
4) Which provides a default exception handler that performs the following tasks?
- Prints out exception description.
- Prints the stack trace (Hierarchy of methods where the exception occurred).
- Causes the program to terminate.
A) JVM
B) JDK
C) JRE
D) None of the above
5) Which provides the mechanism to handle the runtime errors so that normal flow of the application can be maintained?
A) Exception Handling
B) String Handling
C) Event Handling
D) None of the above
6) If the superclass method does not declare an exception, subclass overridden method cannot declare the checked exception?
A) True
B) False
7) Which allows us to control the normal flow of the program by using exception handling in program?
A) Exception Handling
B) String Handling
C) Event Handling
D) None of the above
8) These exceptions are seen in
NullPointerException,
ArrayIndexOutOfBoundsException,
ArithmeticException,
NumberFormatException ?
A) Checked exception
B) Unchecked exception
C) Both A & B
D) None of the above
9) Which block contains a block of program statements within which an exception might occur?
A) Catch
B) try
C) throw
D) final
10) The Exception class has two main subclasses?
A) IOException class
B) RuntimeException Class
C) ClassCastException
D) Both A & B