Correct Answers | Verified | Latest Update
What..is..the..call..stack?..-..Correct..Answer-
Ordered..list..of..methods..that..were..called..to..get..to..the..method..where..the..erro
r..occurred.
What..class..identifies..the..kind..of..error..that..occurred?..-..Correct..Answer-
The..exception..class
Can..you..implement..your..own..exception..classes..by..extending..the..Exception..cla
ss?..-..Correct..Answer-Yes
An..exception..object..gets..created..when..an..exceptional..event..occurred..that..disr
upted..the..normal..flow..of..the..application...What..is..this..called..and..why...-
..Correct..Answer-
This..is..called..to..throw..an..exception..because..in..java..you..use..the..keyword.."thr
ow"..to..hand..the..exception..to..the..runtime.
What..specifically..happens..when..a..method..throws..an..exception..object?..-
..Correct..Answer-
The..runtime..searches..the..call..stack..for..a..piece..of..code..that..handles..it.
True..or..False:..Java..supports..checked..and..unchecked..exceptions?..-
..Correct..Answer-True
, When..should..you..use..checked..exceptions?..-..Correct..Answer-
For..all..exceptions..that..you..can..anticipate..and..that..a..well..written..application..s
hould..be..able..to..handle.
What..class..does..a..checked..exception..extend?..-..Correct..Answer-
The..exception..class
A..method..that..throws..a..checked..exception..or..that..calls..a..method..that..specifie
s..a..checked..exception..needs..to..do..what?..-..Correct..Answer-
Either..specify..or..handle..it
Unchecked..exceptions..extend..what?..-..Correct..Answer-RuntimeException
When..should..you..use..unchecked..exceptions?..-..Correct..Answer-
For..internal..errors..that..you..can't..anticipate..and..that..the..application..cant..reco
ver..from.
True..or..False:..methods..can..but..don't..need..to..handle..or..specify..an..unchecked..
exception?..-..Correct..Answer-True
Common..examples..of..unchecked..exceptions:..-..Correct..Answer-
NullPointerException
IllegalArgumentException