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
0
______✨ HEY MATE ✨______
➡️Option (c) is the right answer ✔️
Hope it's help u
➡️Option (c) is the right answer ✔️
Hope it's help u
Answered by
19
C. class cast exception
Hope it helps u
Hope it helps u
Similar questions
Computer Science,
1 year ago
Computer Science,
1 year ago
Math,
1 year ago
Math,
1 year ago
Physics,
1 year ago