M10 Exceptions

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/12

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

13 Terms

1
New cards

exception

an event that disrupts the normal flow of execution

2
New cards

exception handling

responding to exceptions

3
New cards

try block

surrounds normal code

4
New cards

throw statement

initiate an exception that disrupts normal flow of execution

5
New cards

catch clause

catches exceptions occurring in the immediately preceding try block that match the parameter in the catch clause

6
New cards

throws clause

in the method header after the parameter list and before the method body that indicates an instance of the exception class may be thrown from the method

7
New cards

checked exception

A programmer should be able to anticipate and appropriately handle during execution of a program, such as FileNotFoundException. An exception that the compiler verifies is explicitly caught within or thrown from a method.

8
New cards

unchecked exception

An exception indicating a logic or hardware/configuration error that the compiler does not require to be handled during execution.

9
New cards

finally block

associated with a try block, is always executed, even if there is a thrown exception or a return from a method. Typically contains code to release resources that were allocated within the try block, regardless of whether an exception occurred.

10
New cards

Throwable class

Instances of this class and all descendants can be thrown and handled.

11
New cards

Error class

Instances of this class and all descendants that are thrown are likely hardware or configuration issues that the program itself cannot handle. [unchecked]

12
New cards

RuntimeException class

Instances of this class and all descendants that are thrown are likely logic errors (bug) and should be fixed by the programmer. Includes NullPointerException, IndexOutOfBoundsException, ArithmeticException [unchecked]

13
New cards

Exception class

Instances of this class and descendants other than from the RuntimeException class are all checked exceptions.