Exam 11: Exception Handling

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

An uncaught exception ________.

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

C

Exceptions can be thrown by ________.

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

D

Which of the following statements about try blocks is true?

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

D

Which of the following statements is true?

(Multiple Choice)
4.8/5
(42)

What is the difference between a try block and a try statement?

(Multiple Choice)
4.9/5
(46)

Chained exceptions are useful for finding out about ________.

(Multiple Choice)
4.9/5
(25)

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

(Multiple Choice)
4.8/5
(34)

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

(Multiple Choice)
4.8/5
(34)

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

(Multiple Choice)
4.8/5
(29)

In Java, after an exception is handled, control resumes . This is known as the model of exception handling.

(Multiple Choice)
4.9/5
(41)

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

(Multiple Choice)
4.8/5
(39)

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

(Multiple Choice)
4.8/5
(29)

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

(Multiple Choice)
4.9/5
(37)

Which of the following are types of assertions?

(Multiple Choice)
4.9/5
(43)

Which of the following statements is false?

(Multiple Choice)
4.9/5
(35)

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

(Multiple Choice)
4.7/5
(30)

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

(Multiple Choice)
4.8/5
(40)

Which of the following statements is true?

(Multiple Choice)
5.0/5
(37)

The throws clause of a method:

(Multiple Choice)
4.8/5
(33)

Which of the following exceptions is a checked exception?

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

Filters

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