What will be the output of the program?public class Foo { public static void main(String[] args) { try { return; } finally { System.out.println( 'Finally' ); } } } - Study24x7
Social learning Network
23 Feb 2023 04:43 PM study24x7 study24x7

What will be the output of the program?public class...

See more

A

Finally

B

Compilation fails.

C

The code runs with no output.

D

An exception is thrown at runtime.

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles