万能百科  > 计算机   > 

[单项选择题] 执行下列程序时,会产生( )异常。 public class Test{ public static void main(String a

2021-07-20   

[单项选择题] 执行下列程序时,会产生( )异常。 public class Test{ public static void main(String args[ ]){int d=101;int b=220;long a=321;System.out.println((a-b)/(a-b-d));}}

A.ArraylndexOutOfBoundsException

B.NumberFormatException

C.ArithmeticException

D.EOFExcepfion

正确答案:

C

词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。

标签