Menu
Question Index
...

What will be the output of the following program?

public class Butterfly
{  
    public static void main(String[] args)
    {
        try
        {
            return;
        }

        finally
        {
            System.out.println("Finally");
        }
    }
}


Finally
Compilation Error
The program executes but there is no output.
An exception is thrown at runtime.

Doubts

Problems

Topic: Exception Handling Syntax In Java Programming

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App