单项选择题

Java语言中属于跳转语句的是

A.try
B.catch
C.finally
D.break
<上一题 目录 下一题>
热门 试题

单项选择题
阅读下面代码 public class Person static int arr[]=new int[10]; public static void main(String args) System.out.println(arr[9]); 该代码的运行结果是
阅读下面代码
public class Person
 static int arr[]=new int[10];
 public static void main(String args)
  System.out.println(arr[9]);
 
该代码的运行结果是
单项选择题
阅读下面代码 class Test implements Runnable public int run() int i=0; while(true) i++; System.out.println( i= +i); 上述代码的编译结果是
A.程序通过编译,并且run()方法可以正常输出递增的i值
B.程序通过编译,调用run()方法将不显示任何输出
C.程序不能通过编译,因为while的循环控制条件不能为true
D.程序不能通过编译,因为run()方法的返回值类型不是void
相关试题
  • 阅读下面利用递归来求n!的程序 class Fa...
  • 阅读下面代码 class InterestTest __...
  • 当Applet需要更新显示内容时,应该调用的方...
  • 某二叉树有5个度为2的结点,则该二叉树中...
  • 下列排序方法中,最坏情况下比较次数最少的是