exceptional 2 Flashcards

1
Q

executes regardless of whether the preceding try block identifies an exception.

A

finally block

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

These exceptions inherit from the Error class or the RuntimeException class. Although you can handle these exceptions in your programs, you are not required to do so.

A

Unchecked exceptions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

These exceptions are the type that programmers should anticipate and from which programs should be able to recover. All exceptions that you explicitly throw and that descend from the Exception class are checked exceptions.

A

Checked exceptions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The memory location known as the _____ is where the computer stores the list of memory locations to which the system must return when methods end.

A

call stack

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Constructs a new Exception object with null as its detail message

A

Exception()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Constructs a new Exception object with the specified detail message

A

Exception(String message)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Constructs a new Exception object with the specified detail message and cause

A

Exception(String message, Throwable cause)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Constructs a new Exception object with the specified cause and a detail message of cause.toString(), which typically contains the class and the detail message of cause, or null if the cause argument is null

A

Exception(Throwable cause)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

______ is a Java language feature that can help you detect such logic errors and debug a program

A

assertion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly