Please enable JavaScript.
Coggle requires JavaScript to display documents.
Recognizing Common Exceptions Types (Errors (ExceptionInInitializerError…
Recognizing Common Exceptions Types
Recognize three type
runtime exceptions
checked exception
errors
Runtime Exceptions
Extends RuntimeException
Dont need handle or thrown
ArithmeticException
try to divide by zero
ArrayIndexOutOfBoundsException
Illegal index access an array
ClassCastException
Cast a subclass is not a instance
IllegalArgumentException
Illegal argument
NullPointerException
Null reference where an object is required
NumberFormatException
Try to convert string to number type
Acrônimo AACINN
Checked Exceptions
Have Exception
Haven't RuntimeException
Must be declared and handled
OCA Exam
Need to know what is Checked Exceptions
Only this
Errors
Extend Error class
JVM Thrown
Should not be declared or handled
ExceptionInInitializerError
Static block initialize throw an exception
StackOverflowError
Method call itself too many times
Recursive without condition
NoClassDefFoundError
Code uses class is not available in runtime
Not appear on exam
Acrônimo ESN