Vidyalelo
Java Programming · Q71

Exceptions

Programming · Java Programming · question 71

Q71

What will be the output of the following Java code? public class A public static void main(String[] args) try return; finally System.out.println( "Finally" );

A.
Finally
Answer
B.
Compilation fails
C.
The code runs with no output
D.
An exception is thrown at runtime

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board