可学答题网 > 问答 > Java认证考试综合练习题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

public static void main(String[]args)


public static void main(String[]args){ for(inti=0;i<=10;i++){ if(i>6)break; } System.out.println(i); } What is the result?()

  • A6
  • B7
  • C10
  • D11
  • ECompilation fails.
  • FAnexception is thrown at runtime.
参考答案
参考解析:
分类:Java认证考试综合练习题库
相关推荐

1、public class Pass{ public static void

public class Pass{public static void main(String[]args){int x=5;Pass p=new Pass();p.doStuff(x);System.out.print("mainx="+x);}void doStuff(intx...

2、public class Test{ public static void

public class Test{public static void main(String[]args){intx=5;boolean b1=true;boolean b2=false;if((x==4)&&!b2)System.out.print("l");System.out.pr...

3、11. public static void

11.&ensp;public&ensp;static&ensp;void&ensp;main(String[]&ensp;args)&ensp;{&ensp;12.&ensp;Integer&ensp;i&ensp;=&ensp;uew&ensp;Integer(1)&ensp;+&ensp;new&ensp;Inte...

4、public static void main方法的参数描述正确的有()。

public static void main方法的参数描述正确的有()。AString args[]BString[] argsCStrings args[]zDString argsEStrings arg[]

5、11. public static void

11.&ensp;public&ensp;static&ensp;void&ensp;test(String&ensp;str)&ensp;{&ensp;12.&ensp;if(str&ensp;==&ensp;null&ensp;&ensp;str.lellgth()&ensp;==&ensp;0)&ensp;{&...

6、public static void main(String[]args)

public static void main(String[]args){Integer i=new Integer(1)+new Integer(2);switch(i){case3:System.out.println("three");break;default:System.o...