import java.io.IOException; import java.util.EmptyStackException; public class…

import java.io.IOException;

import java.util.EmptyStackException;

public class newclass

{

public static void main(String[] args)

{

try

{

System.out.printf("%d", 1);

throw(new Exception());

}

catch(IOException e)

{

System.out.printf("%d", 2);

}

catch(EmptyStackException e)

{

System.out.printf("%d", 3);

}

catch(Exception e)

{

System.out.printf("%d", 4);

}

finally

{

System.out.printf("%d", 5);

}

}

}

  1. A.

    12345

  2. B.

    15

  3. C.

    135

  4. D.

    145

Attempted by 40 students.

Sign up free to check your answer

Sign up free

Explore the full course: Tpsc Assistant Technical Officer

Loading lesson…