1.

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. llegalStateException
B. umberFormatException
C. lassCastException
D. rrayIndexOutOfBoundsException
E. one of these
Answer» C. lassCastException


Discussion

No Comment Found

Related MCQs