相关试题
单选题 下列哪个命题为真?( )
单选题 分析下面的Java程序段输出结果为( )。 public class yy { public static void main(String[] args) throws Exception { try { throw new Exception(); }catch(Exception e){ System.out.println("Caught in main()"); } System.out.println("nothing"); } }
单选题 已知A类被打包在packageA , B类被打包在packageB ,B类被声明为public 且有一个成员变量x被声明为protected控制方式 。C类也位于packageA包,且继承了B类 。则以下说法正确的是( )。
单选题 下列哪种说法是正确的?( )
单选题 给出下面代码:
public class Test{
static int arr[] = new Int[10];
public static void main(String args[]) {
System.out.println(arr[10]);
}
}
以下哪个选项是正确的( )
单选题 下面哪项在java中是不合法的标识符?( )
单选题 下列描述中,错误的是( )。
单选题 若有定义 int a=9,b=6; 则a>b的值是( )。