My Report

Java Exception Handling Test – 2


Correct Answer: 2 points | Wrong: -1 point
Grades: A* (100% score) | A (80%-99%) | B (60%-80%) | C (40%-60%) | D (0%-40%)
advertisement

1. At runtime, error is recoverable.

2. Which of the following operators is used to generate instance of an exception which can be thrown using throw?

3. Which part of code gets executed whether exception is caught or not?

4. Which of the following keyword is used by a calling function to handle exception thrown by a called function?

5. Which of the following should be true of the object thrown by a thrown statement?

6. Which of the following handles the exception when a catch is not used?

7. Which of the following classes can catch all exceptions which cannot be caught?

8. Which of the following is a super class of all exception type classes?

9. Which of the following keywords is used for throwing exception manually?


 

Start practicing “1000 MCQs on Java”, and once you are ready, you can take tests on all topics by attempting our “Java Test Series”.

Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.