1.

What will be the output of the program? public class Foo { public static void main(String[] args) { try { return; } finally { System.out.println( "Finally" ); } } }

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


Discussion

No Comment Found

Related MCQs