Q44
public class Test public static void main(String args[]) try int a = Integer.parseInt("four"); Which exception could be handled by the catch block for above?
A.
IllegalStateException
B.
NumberFormatException
AnswerC.
ClassCastException
D.
ArrayIndexOutOfBoundsException
E.
None of these
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board