Vidyalelo
Java Programming · Q44

Exceptions

Programming · Java Programming · question 44

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
Answer
C.
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