Exeption Handling Flashcards

1
Q

Exception

A

event which occurs during execution of a program that disrupts the normal flow of the programs instructiona

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

Call stack

A

ordered list of methods that had been called to get to the method where the error occurred

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

Exception handler

A

method that usually contains a block of code that can handle an exception

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

Types of exception

A

checked exceptions
error
runtime exception

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

Checked exceptions

A

exceptional conditions that a well written application should anticipate and recover from

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

Error

A

exceptional conditions that are external to an application

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

Runtime exception

A

exceptional conditions that are internal to tha application usually because of programmers mistake

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

Exception handling done with four components

A

try block-exception occurs
catch block-exeception handler
finally block- executes when try block exits
try with resources statement-try statement that declares one or more resources

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

resource

A

object or statement being utilized in the event of an execution

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