Exeption Handling Flashcards
Exception
event which occurs during execution of a program that disrupts the normal flow of the programs instructiona
Call stack
ordered list of methods that had been called to get to the method where the error occurred
Exception handler
method that usually contains a block of code that can handle an exception
Types of exception
checked exceptions
error
runtime exception
Checked exceptions
exceptional conditions that a well written application should anticipate and recover from
Error
exceptional conditions that are external to an application
Runtime exception
exceptional conditions that are internal to tha application usually because of programmers mistake
Exception handling done with four components
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
resource
object or statement being utilized in the event of an execution