Menu
Question Index
...

What will be the output of the following program?

class KeyBoard
{
    public static void main(String[] args)
    {
        try
        {
            System.exit(0);
        }
    
        finally
        {
            System.out.println("This is Finally Block");
        }
    }
}


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

Doubts

Problems

Topic: Unknown

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App