Computers

University

Image

Exception Handling

11
plays

53 questions

Show Answers
See Preview
  • 1. Multiple Choice
    30 seconds
    1 pt

    When does Exceptions in Java arises in code sequence?

    Run Time

    Compilation Time

    Can Occur Any Time

    None of the mentioned

  • 2. Multiple Choice
    30 seconds
    1 pt

    Which of these keywords is not a part of exception handling?

    try

    finally

    thrown

    catch

  • 3. Multiple Choice
    30 seconds
    1 pt

    Predict the output of following Java program

    class Main {

    public static void main(String args[]) {

    try {

    throw 10;

    }

    catch(int e) {

    System.out.println("Got the Exception " + e);

    }

    }

    }

    Got the Exception 10

    Got the Exception 0

    Compiler Error

  • Answer choices
    Tags
    Answer choices
    Tags

    Explore all questions with a free account

    Already have an account?