Exam 12: Exception Handling

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

How is an Error class different from an Exception class?

(Essay)
4.9/5
(34)

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.8/5
(30)

   The example code above depicts a try block and a catch block. Describe how the try and catch blocks operate when illegal integer division is attempted. Describe what will happen if valid values are entered. The example code above depicts a try block and a catch block. Describe how the try and catch blocks operate when illegal integer division is attempted. Describe what will happen if valid values are entered.

(Essay)
4.8/5
(34)

What is the correct syntax of an assert statement?

(Multiple Choice)
4.9/5
(40)

If a method throws an exception that it will not catch but that will be caught by a different method, you must also use the keyword ____ followed by an Exception type in the method header.

(Multiple Choice)
4.7/5
(39)

A(n) ____ clause is used in the method header so that applications that use your methods are notified of the potential for an exception.

(Multiple Choice)
4.7/5
(34)
Showing 61 - 66 of 66
close modal

Filters

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