Computer Science, asked by Apurva9403, 1 year ago

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
C.ClassCastException
D.ArrayIndexOutOfBoundsException

Answers

Answered by Neeraj723
0
______✨ HEY MATE ✨______

➡️Option (c) is the right answer ✔️ 

Hope it's help u
Answered by Anonymous
19
C. class cast exception

Hope it helps u
Similar questions