RuntimeExceptions - ANSWER-ArithmeticException
ArrayIndexOutOfBoundsException
ClassCastException
IllegalArgumentException
NullPointerException
NumberFormatException
(akin: AACINN)
Checked Exceptions - ANSWER-FileNotFoundException
IOException
Errors - ANSWER-ExceptionInitializerError
StackOverflowError
NoClassDefFoundError
Samples of Compile Errors - ANSWER-Unreachable Code,
Cannot switch on a value of type Boolean,
Illegal modifier,
The type T cannot subclass the final class C,
Cannot reduce visibility,
Unreachable catch block
Type hierarchy of ArrayIndexOutOfBoundsException - ANSWER-extends
IndexOutOfBoundsException
extends RuntimeException
NumberFormatException - ANSWER-extends IllegalArgumentException, extends
RuntimeException
Is RuntimeException okay for program to catch? - ANSWER-RuntimeException:
ok to be catched: Yes
Is RuntimeException required to handle by program? - ANSWER-RuntimeException:
not requried to handle
Is checked exception okay for program to catch? - ANSWER-Checked exception:
ok to be catched: Yes
Is checked exception required to handle by program? - ANSWER-Checked exception:
required to be handled
Is Error okay for program to catch? - ANSWER-Error:
ok to be catched: No
, Is Error required to handle by program? - ANSWER-Error:
not required to be handled:
Operator precedence - ANSWER-PP MAS REL STA
post-unary,
pre-unary,
mult/div/modulo,
add/sub,
shift,
relational,
equal to / not equal to,
logical,
short-circuit,
ternary,
assignment
post-unary - ANSWER-expression++, expression--
pre-unary - ANSWER-++expression, --expression, +expression, -expression, ~, !
Multiplication,Division, Modulo - ANSWER-*, /, %
Addtion, Subtraction - ANSWER-+, -
Shift - ANSWER-<<, >>, >>>
Relational - ANSWER-<, >, <=, >=, instanceof
equal to, not equal to - ANSWER-==, !=
Logical - ANSWER-&, ^, |
Short-circuit - ANSWER-&&, ||
Ternary - ANSWER-bolean expression ? expression1 : expression2
Assignment - ANSWER-=, +=, -=, *=, /=, %=, &=, ^=, |=, <<=, >>=, >>>=
Allows optional labels - ANSWER-if, while, do while, for, switch
Allows break statement - ANSWER-while, do while, for, switch
Allows continue statement - ANSWER-while, do while, for