GoConqr has a new look! Let us know what you think.

Quiz

Exception Handling

valentinexander 10 questions

Take the quiz

Questions in this quiz (10)

  1. 1The catch block has ________ parameter(s).
    1. Azero
    2. Bone
    3. Ctwo
    4. Dthree
  2. 2If a method does not catch an exception, then it must at least warn programmers that any invocation of the method might possibly throw an exception. This warning is called a/an:
    1. AException handler
    2. BThrows clause
    3. CTry block
    4. DCatch block
  3. 3All exceptions are descendants of the class:
    1. AThrowable
    2. BCatchable
    3. CTryable
    4. DBlockable
  4. 4A runtime exception is a/an:
    1. Achecked exception
    2. Bunchecked exception
    3. Coffending exception
    4. Dnone of these
  5. 5A _________ block executes regardless of whether an exception occurs.
    1. Afinal
    2. Bfinally
    3. Ccatch
    4. Dnone of these
  6. 6The basic way of handling exceptions in Java consists of the try-catch-throw trio.
    1. ATrue
    2. BFalse
  7. 7The two most important things about an exception object are its type and the message that it carries in an instance variable of type String.
    1. ATrue
    2. BFalse
  8. 8Exceptions that must follow the Catch or Declare Rule are often called unchecked exceptions.
    1. ATrue
    2. BFalse
  9. 9You can not place a try block and its following catch blocks inside a larger try block or inside a larger catch block.
    1. ATrue
    2. BFalse
  10. 10ArrayIndexOutOfBoundsException need not be caught or accounted for in a throws class.
    1. ATrue
    2. BFalse

Information

Description
Quiz on Exception Handling, created by valentinexander on 10/12/2014.
Language
English
Views
1
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?