Menu
Question Index
...

What lines of the following program gets executed, given that the exceptions are thrown at LINE B, at LINE D and at LINE F.

try
{
    // LINE A
    try
    {
        // LINE B
    }
    catch(Exception ex)
    {
        // LINE C
    }
    // LINE D
}
catch(Exception e)
{
    // LINE E
    // LINE F
}
// LINE G


A, B, C, D, E, F, G
A, B, E, F, G
A, B, C, D, E, F
A, B, C, E, F, G

Doubts

Problems

Topic: Try Catch Block In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App