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(

(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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Advanced Java Programming Questions!