Quiz
Exception Handling
Crie uma conta grátis para terminar este quiz
Salve seu progresso e veja sua nota final.
Já tem uma conta? Inicie sessão
Perguntas do 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.
- AVerdadeiro
- BFalso
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.
- AVerdadeiro
- BFalso
8Exceptions that must follow the Catch or Declare Rule are often called unchecked exceptions.
- AVerdadeiro
- BFalso
9You can not place a try block and its following catch blocks inside a larger try block or inside a larger catch block.
- AVerdadeiro
- BFalso
10ArrayIndexOutOfBoundsException need not be caught or accounted for in a throws class.
- AVerdadeiro
- BFalso
Informações
- Descrição
- Quiz sobre Exception Handling, criado por valentinexander em 10-12-2014.
- Autor
- valentinexander
- Idioma
- English
- Visualizações
- 1
- Avaliação
- Ainda sem avaliações Avalie este quiz