To catch the exceptions ___________________

To catch the exceptions ___________________
A. An object must be created to catch the exception
B. A variable should be created to catch the exception
C. An array should be created to catch all the exceptions
D. A string have to be created to store the exception
 
Answer: a
Explanation: The object must be created of a specific class of which the error has occurred. If the type of error is unknown then we can use an object of class Exceptions. This object will be able to handle any kind of exception that a program might produce.
 

Tìm kiếm

Back
Top