Exam 11: Exception Handling

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

Which of the following are types of assertions?

Free
(Multiple Choice)
4.8/5
(29)
Correct Answer:
Verified

E

Which of the following statements is false?

Free
(Multiple Choice)
4.8/5
(30)
Correct Answer:
Verified

C

To catch an exception,the code that might throw the exception must be enclosed in a

Free
(Multiple Choice)
4.9/5
(32)
Correct Answer:
Verified

C

When an exception occurs it is said to have been:

(Multiple Choice)
4.7/5
(29)

Chained exceptions are useful for finding out about:

(Multiple Choice)
4.9/5
(43)

Which of the following statements about try blocks is true?

(Multiple Choice)
4.9/5
(47)

In the catch block below,what is arithmeticException? catch ( ArithmeticException arithmeticException ) { System.err.printf( arithmeticException ); } // end catch

(Multiple Choice)
4.7/5
(39)

Which of the following is not included in an exception's stack trace?

(Multiple Choice)
4.8/5
(42)

Which of the following exceptions is a checked exception?

(Multiple Choice)
4.8/5
(33)

The throws clause of a method:

(Multiple Choice)
4.9/5
(38)

Which of the following statements is true?

(Multiple Choice)
4.9/5
(39)

Which of the following statements is false?

(Multiple Choice)
4.7/5
(41)

When an unchecked exception occurs in a method but is not caught:

(Multiple Choice)
4.8/5
(40)

Java SE 7's multi-catch enables you to catch multiple exception types in a single catch handler and perform the same task for each type of exception.The syntax for a multi-catch is:

(Multiple Choice)
4.8/5
(38)

Which of the following statements about the try-with-resources statement is false?

(Multiple Choice)
4.9/5
(37)

All exception classes inherit,either directly or indirectly,from:

(Multiple Choice)
4.8/5
(36)

Which of the following statements is true?

(Multiple Choice)
4.9/5
(37)

Which of the following statements is false?

(Multiple Choice)
4.7/5
(28)

Which of the following is true?

(Multiple Choice)
4.9/5
(34)

After a finally block has finished executing (and there are no exceptions to be handled):

(Multiple Choice)
4.8/5
(31)
Showing 1 - 20 of 28
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)