Tuyết Trinh Nguyễn
New member
try {
int i = Integer.parseInt("one");
}[/CODE]
Cho đoạn mã sau. Khối lệnh trên sẽ phát sinh Exception gì?
A. ClassCastException
B. illegalStateException
C. NumberFormatException
D. ArrayIndexOutOfBoundsException
int i = Integer.parseInt("one");
}[/CODE]
Cho đoạn mã sau. Khối lệnh trên sẽ phát sinh Exception gì?
A. ClassCastException
B. illegalStateException
C. NumberFormatException
D. ArrayIndexOutOfBoundsException
Chọn C là đáp án đúng