阅读下列代码后 正确的说法是()。
阅读下列代码后正确的说法是()。
A.编译时将产生错误
B.编译时正确,运行时将产生错误
C.输出零
D.输出空
阅读下列代码后正确的说法是()。
A.编译时将产生错误
B.编译时正确,运行时将产生错误
C.输出零
D.输出空
第1题
阅读下列代码后 public class Person{ int arr[]=new int[10]; public static void main(String args[]){ System.out.println(arr[1]); } } 正确的说法是()。
A.编译时将产生错误
B.编译时正确,运行时将产生错误
C.输出零
D.输出空
第2题
阅读下列代码段 ByteArrayOutputStream bout=new ByteArrayOutputStream(); ObjectOutputStream ut=new ObjectOutputStream(bout); out. writeObject(this); out. close(); 以上代码段的作用是
A.将对象写入内存
B.将对象写入硬盘
C.将对象写入光盘
D.将对象写入文件
第4题
对于采用软件工程方法设计的软件,其维护工作应始于()。
A.回归测试
B.阅读代码
C.阅读设计文档
D.需求分析
第5题
阅读下列代码 public class Test implements Runnable{ public void run(Thread t){ System. out. println("Running. "); } public static void main(String[]args){ Thread tt=new Thread(new Test()); tt. start(); } } 代码运行结果是
A.将抛出一个异常
B.没有输出并正常结束
C.输出“Running”并正常结束
D.程序第2行将出现一个编译错误
第7题
A.编译时将产生错误
B.编译时正确,运行时将产生错误
C.输出零
D.输出空
第10题
A.无编译错误
B.代码publicStringdoit(){行,出现编译错误
C.代码return“a”;行,出现编译错误
D.代码publicdoubledoit(intx){行,出现编译错误