Sail E0 Webinar
Question
What 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"); } }}
Options:
A .  inCatchBlock
B .  inCatchBlock inFinallyBlock
C .  The program will return without printing anything
D .  inFinallyBlock
Answer: Option D

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :


Latest Videos

Latest Test Papers