题目内容

4、下面初始化数组语句()是不正确的。

A. int x[] = {1,2,3};
B. int x[3] = {1,2,3};
C. int[] x = {1,2,3};
D. int x[] = new int[]{1,2,3};

查看答案
更多问题

5、指出下列程序运行的结果 ( )public class Example{String str=new String("good");char[]ch={'a','b','c'};public static void main(String args[]){Example ex=new Example();ex.change(ex.str,ex.ch);System.out.print(ex.str+" and ");System.out.print(ex.ch);}public void change(String str,char ch[]){str="test ok";ch[0]='g';}}

A. good and abc
B. good and gbc
C. test ok and abc
D. test ok and gbc

2、若在某一个类定义中定义有如下的方法:finalvoid aFinalFunction( );则该方法属于( )。

A. 本地方法
B. 静态方法
C. 最终方法
D. 抽象方法

13、类与对象的关系是()。

A. 类是对象的抽象
B. 类是对象的具体实例
C. 对象是类的抽象
D. 对象是类的子类

确诊阵发性睡眠性血红蛋白尿的实验项目是

A. 抗人球蛋白试验
B. 酸溶血试验
C. 异常血红蛋白测定
D. 高铁血红蛋白还原试验
E. 红细胞渗透脆性试验

答案查题题库