Please enable JavaScript.
Coggle requires JavaScript to display documents.
Exam Essentials (Understand flow of try statement (Must have (catch or…
Exam Essentials
Understand flow of try statement
Must have
catch or finally block
Allow multiple catch blocks
finally must be after catch
finally block always run
regardless whether an exception is thrown
Know differentiate between
checked expcetion
They are subclasses
java.lang.Exception
unchecked exception
As Runtime Exception
They are subclasses
java.lang.RuntimeException
Identify who thrown the exception
Programmer
throw
IllegalArgumentException
NumberFormatException
JVM
Other Runtime Exception
Commonly thrown by him
Declare methods that declares exceptions
keyword throws
method thrown an exception
Overriding method
Subclasses or superclass can be used from original version
Recognize when to use throw versus throws
throws is used method declaration
throw new RuntimeException();
throw an exception