下面的程序会抛出什么异常类型?public class Test { public static void main(String[] args) { String s = "abc"; System.out.println(s.charAt(3)); }}
选项:
A:ArithmeticException;
B:ArrayIndexOutOfBoundsException;
C:StringIndexOutOfBoundsException;
D:ClassCastException
发布时间:2024-05-13 15:58:22