Question: What will be the output of the program? (a) Finally (b) Compilation error. (c) The code runs with no output. (d) An exception is thrown
What will be the output of the program?![public class Test { public static void main(String[] args) { try { } return; } finally { System.out.println(](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1704/7/8/3/960659cf0585c3fe1704783955166.jpg)
(a) Finally
(b) Compilation error.
(c) The code runs with no output.
(d) An exception is thrown at runtime.
public class Test { public static void main(String[] args) { try { } return; } finally { System.out.println("Finally" );
Step by Step Solution
3.37 Rating (166 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
