Exam 11: Exception Handling: a Deeper Look

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

Exceptions can be thrown by ________.

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

D

An uncaught exception ________.

Free
(Multiple Choice)
4.7/5
(89)
Correct Answer:
Verified

C

If the catch-or-declare requirement for a checked exception is not satisfied ________.

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

B

Which of the following statements is false?

(Multiple Choice)
4.7/5
(80)

The throws clause of a method:

(Multiple Choice)
4.9/5
(70)

Which of the following statements is false?

(Multiple Choice)
4.8/5
(92)

Which of the following statements is true?

(Multiple Choice)
4.9/5
(86)

Which of the following statements about try blocks is true?

(Multiple Choice)
4.7/5
(80)

Which of the following statements is false?

(Multiple Choice)
4.7/5
(86)

Chained exceptions are useful for finding out about ________.

(Multiple Choice)
4.7/5
(91)

Which of the following exceptions is a checked exception?

(Multiple Choice)
4.7/5
(72)

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

(Multiple Choice)
4.8/5
(89)

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

(Multiple Choice)
4.9/5
(74)

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

(Multiple Choice)
4.8/5
(73)

When an unchecked exception occurs in a method but is not caught, ________.

(Multiple Choice)
4.8/5
(81)

Which of the following are types of assertions?

(Multiple Choice)
4.9/5
(77)

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

(Multiple Choice)
4.8/5
(77)

Which of the following statements is true?

(Multiple Choice)
4.8/5
(80)

All exception classes inherit, either directly or indirectly, from ________.

(Multiple Choice)
4.8/5
(73)

Which of the following errors is synchronous?

(Multiple Choice)
4.8/5
(76)
Showing 1 - 20 of 27
close modal

Filters

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