Exam 12: Exception Handling

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

What is the correct syntax of an assert statement?

(Multiple Choice)
4.8/5
(39)

An alternative to hard coding error messages into your Exception classes is creating a catalog of possible messages to use. What are the advantages of doing so?

(Essay)
4.9/5
(39)

In the case where a method might throw more than one exception type, you specify a list of potential exceptions in the method header by separating them with ____.

(Multiple Choice)
4.9/5
(30)

____ statements are program statements that can never execute under any circumstances.

(Multiple Choice)
4.9/5
(39)

If you want to ensure that a user enters numeric data, you should use ____ techniques that provide the means for your program to recover from the mistake.

(Multiple Choice)
4.8/5
(38)
Showing 61 - 65 of 65
close modal

Filters

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