Which of these class is related to all the exceptions that can be caught by using catch?
A. Error
B. Exception
C. RuntimeExecption
D. All of the mentioned
Answer:A
Which of these class is related to all the exceptions that can be caught by using catch?
A. Error B. Exception C. RuntimeExecption D. All of the mentioned
Explanation: Error class is related to java run time error that can’t be caught usually, RuntimeExecption is subclass of Exception class which contains all the exceptions that can be caught.