Quiz
Exception Handling
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (10)
1The catch block has ________ parameter(s).
- Azero
- Bone
- Ctwo
- Dthree
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:
- AException handler
- BThrows clause
- CTry block
- DCatch block
3All exceptions are descendants of the class:
- AThrowable
- BCatchable
- CTryable
- DBlockable
4A runtime exception is a/an:
- Achecked exception
- Bunchecked exception
- Coffending exception
- Dnone of these
5A _________ block executes regardless of whether an exception occurs.
- Afinal
- Bfinally
- Ccatch
- Dnone of these
6The basic way of handling exceptions in Java consists of the try-catch-throw trio.
- ATrue
- BFalse
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.
- ATrue
- BFalse
8Exceptions that must follow the Catch or Declare Rule are often called unchecked exceptions.
- ATrue
- BFalse
9You can not place a try block and its following catch blocks inside a larger try block or inside a larger catch block.
- ATrue
- BFalse
10ArrayIndexOutOfBoundsException need not be caught or accounted for in a throws class.
- ATrue
- BFalse
Information
- Description
- Quiz on Exception Handling, created by valentinexander on 10/12/2014.
- Author
- valentinexander
- Language
- English
- Views
- 1
- Rating
- No ratings yet Rate this quiz