Single Choice Not Set

QWhat is the output of the following program code?
public class Test{
        public static void main(String args[]){
                try{
                        int i;
                        return;
                }
                catch(Exception e){
                        System.out.print("inCatchBlock");
                }
                finally{
                        System.out.println("inFinallyBlock");
                }
        }
}

ID: #2322 Java Exception MCQ 1,342 views
Question Info
#2322Q ID
Not SetDifficulty
Java Exception MCQTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A inCatchBlock
  • B inCatchBlock inFinallyBlock
  • C inFinallyBlock
  • D The program will return without printing anything
Correct Answer

Explanation

inFinallyBlock

Share This Question

Challenge a friend or share with your study group.