Sail E0 Webinar

MCQs

Total Questions : 15 | Page 2 of 2 pages
Question 11. Which of these is a super class of all exceptional type classes?
  1.    String
  2.    RuntimeExceptions
  3.    Throwable
  4.    Cachable
 Discuss Question
Answer: Option C. -> Throwable


All the exception types are subclasses of the built in class Throwable.


Question 12. Which of these class is related to all the exceptions that cannot be caught?
  1.    Error
  2.    Exception
  3.    RuntimeExecption
  4.    All of the mentioned
 Discuss Question
Answer: Option A. -> Error


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.


Question 13. Which of these handles the exception when no catch is used?
  1.    Default handler
  2.    finally
  3.    throw handler
  4.    Java run time system
 Discuss Question
Answer: Option A. -> Default handler


Default handler


Question 14. Which of these class is related to all the exceptions that can be caught by using catch?
  1.    Error
  2.    Exception
  3.    RuntimeExecption
  4.    All of the mentioned
 Discuss Question
Answer: Option B. -> Exception


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.


Question 15. Which of these keywords is used to manually throw an exception?
  1.    try
  2.    finally
  3.    throw
  4.    catch
 Discuss Question
Answer: Option C. -> throw


throw


Latest Videos

Latest Test Papers