网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
下列代码的执行结果是( )。
A.error1
B.error2
C.error1 error2
D.2 error2
参考答案
更多 “ 下列代码的执行结果是( )。A.error1B.error2C.error1 error2D.2 error2 ” 相关考题
考题
下列代码的执行结果是______。public class Test{public static void main(String[]args){int[]x={0, 1, 2, 3};for(int i=0;i<3;i+=2){try{System.out println(x[i+23/x[i]+x[i+1]);}catch(ArithmeticException e){System.out.println("error1");}catch (Exception e){System.out.println("error2");}}}}A) error1B) error2C) error1D) 2error2 error2A.B.C.D.
考题
下列代码的执行结果是( )。 public class Test{ public static void main(String[]args){ int[]x={0,1,2,3}; for{int i=0;i3;1+=2){ try{ systcm.OUt.println(x[i+2]/x[i]+x[i+1]); }catch(ArithmeticException e){ System.OUt.println("errorl"): }catch(Exception e){ System.OUt.println("error2"): } } } }A.errorlB.error2C.errorl orror2D.2 error2
考题
下列代码的执行结果是( )。 int length="Hell0".length; System.OUt.println(length); A.5S
下列代码的执行结果是( )。 int length="Hell0".length; System.OUt.println(length);A.5B.2C.10D.6
考题
下列代码的执行结果是____. i = 10 if i in [1, 3, 10, 4]: print('a') else: print('b')
热门标签
最新试卷