网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

下面程序的正确输出是( )。

A.1234

B.134

C.编译错误

D.以上都不正确


参考答案

更多 “ 下面程序的正确输出是( )。A.1234B.134C.编译错误D.以上都不正确 ” 相关考题
考题 下面程序的正确输出是( )。 public class Hello { public static void main(String args[]) { int count, xPos=25; for ( count=1; count<=10; count++ ) { if ( count==5 ) break; System.out.println(count ); xPos += 10; } } }A.1 2 3 4B.1 3 4C.编译错误D.以上都不是

考题 阅读下面的程序: public class Person{ int arr[ ]=Hew int[10]; public static void main(String args[ ]){ System.out.println(arr[1]); } } 正确的说法是______。A.编译时将产生错误B.编译时正确,运行时将产生错误C.输出为0D.输出为空

考题 下面程序的正确输出是( )。 Publicclasshello { Publicstaticvoidmain(Stringargs[]) { Intcount,xPos=25; For(count=1;count<=10;count++) { IRcount==5) Break; System.out.println(count); xPos+=10; } } }A.1 2 34B.1 34C.编译错误D.以上都不正确

考题 下面程序的正确输出是( )。 public class Hello { public static void main(String args[]) { int count,xPos=25; for(count=1;count=10;count++) { if(count= =5) Break; system.Out.println(count); xPos+=10: } } }A.1 2 3 4B.1 3 4C.编译错误D.以上都不正确

考题 下列程序的输出结果是( )。A.编译未通过B.编译通过,但运行错误C.可以运行,但有错误D.以上都不对

考题 给出下面代码,关于该程序以下哪个说法是正确的?(C ) public class Person{ static int arr[] = new int[5]; public static void main(String a[]) { System.out.println(arr[0]);} } }A.编译时将产生错误B.编译时正确,运行时将产生错误C.输出零D.输出空

考题 给出下面代码,关于该程序以下哪个说法是正确的?() public class Person{ static int arr[] = new int[5]; public static void main(String[] a) {   System.out.println(arr[0]);  } }A.编译时将产生错误B.编译时正确,运行时将产生错误C.输出零D.输出空

考题 给出下面代码,关于该程序以下哪个说法是正确的?() public class Person{ static int arr[] = new int[5]; public static void main(String args[]) {    System.out.println(arr[0]);  } }A.编译时将产生错误B.编译时正确,运行时将产生错误C.输出零D.输出空

考题 给出下面代码,关于该程序以下哪个说法是正确的?() public class Person{ static int arr[] = new int[5]; public static void main(String a[]) { System.out.println(arr[0]);} } }A.编译时将产生错误B.编译时正确,运行时将产生错误C.输出零D.输出空