Exception Handling quiz questions based on core java :
This document file contains array question based on core java. It has multiple choice type questions. Each question has it's correct answer and the explanation for each question i.e. how a particular answer is correct. e.g.: What will be the output of the program?
public class Foo
public static void main(String args)
System.out.println( "Finally" );
C.The code runs with no output.
D.An exception is thrown at runtime.
Answer: Option A
If you put a finally block after a try and its associated catch blocks, then once execution enters the try block, the code in that finally block will definitely be executed except in the following circumstances:
1. An exception arising in the finally block itself.
2. The death of the thread.
3. The use of System.exit()
4. Turning off the power to the CPU.
Exception Handling quiz questions based on core java
Subscribe Notes by RSS
You can upload any kind of file here with these extensions(.pdf, .doc, .docx, .ppt, .pptx, .txt)
If you are facing any problem in uploading files, you can send the attachment on email@example.com