πŸ“Š JAVA
Q. 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");
}
}
}
  • (A) inCatchBlock
  • (B) inCatchBlock inFinallyBlock
  • (C) inFinallyBlock
  • (D) The program will return without printing anything
πŸ’¬ Discuss
βœ… Correct Answer: (C) inFinallyBlock

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
93
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Ravi Shankar
Publisher
πŸ“ˆ
99%
Success Rate