In this lesson our instructor talks about exception handling. First, he talks about exception handling, errors, and the common types of errors. Then, he discusses the common types of errors, using the 'try catch' process', and the 'try catch' syntax. He finishes by talking about the throw statement and three complete example videos.
An error that
arises through mistakes in coding or through incorrect data entered
by the user is called an exception
Such errors that
are encountered while a program runs are said to be thrown
to anticipate these errors and either prevent or solve them before
Java uses the
Try... Catch... process in order to try running a block of code
to test for errors and then catch an error if it occurs
statements must be followed by at least one Catch statement or
a Finally statement
occur that are not handled by a Catch block of code or a
Finally block will cause a program to terminate
Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.