重要提示:请勿将账号共享给其他人使用,违者账号将被封禁!
查看《购买须知》>>>
首页 > 计算机类考试> 计算机二级> Java
网友您好,请在下方输入框内输入要搜索的题目:
搜题
拍照、语音搜题,请扫码下载APP
扫一扫 下载APP
题目内容 (请给出正确答案)
[主观题]

阅读下列代码后 public class Person{ int arr[]=new int[10]; public static void main(St

阅读下列代码后 public class Person{ int arr[]=new int[10]; public static void main(String args[]){ System.out.println(arr[1]); } } 正确的说法是()。

A.编译时将产生错误

B.编译时正确,运行时将产生错误

C.输出零

D.输出空

答案
查看答案
更多“阅读下列代码后 public class Person{ int arr[]=new int[10]; public static void main(St”相关的问题

第1题

阅读下列代码后 正确的说法是()。

阅读下列代码后正确的说法是()。

A.编译时将产生错误

B.编译时正确,运行时将产生错误

C.输出零

D.输出空

点击查看答案

第2题

阅读下列代码后public class Person{int arr[]=new int[10];public static void main(String arg

阅读下列代码后 public class Person{ int arr[]=new int[10]; public static void main(String args[]){ System.out.println(arr[1]); } } 正确的说法是()。

A.编译时将产生错误

B.编译时正确,运行时将产生错误

C.输出零

D.输出空

点击查看答案

第3题

阅读下列代码段ByteArrayOutputStream bout=new ByteArrayOutputStream();ObjectOutputStream ut

阅读下列代码段 ByteArrayOutputStream bout=new ByteArrayOutputStream(); ObjectOutputStream ut=new ObjectOutputStream(bout); out. writeObject(this); out. close(); 以上代码段的作用是

A.将对象写入内存

B.将对象写入硬盘

C.将对象写入光盘

D.将对象写入文件

点击查看答案

第4题

阅读下列JSP代码片断:<% int x=5; %><%! private int m()

A.x=3,6

B.x=3,4

C.x=5,4

D.编译错误

点击查看答案

第5题

对于采用软件工程方法设计的软件,其维护工作应始于()。A.回归测试B.阅读代码C.阅读设计文档D.需求

对于采用软件工程方法设计的软件,其维护工作应始于()。

A.回归测试

B.阅读代码

C.阅读设计文档

D.需求分析

点击查看答案

第6题

阅读下列代码public class Test implements Runnable{public void run(Thread t){System. out. p

阅读下列代码 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题

请先阅读下面的代码 int x = 1; int y = 2; if (); 上面一段程序运行结束时,变量y的值为下列哪一项?

A.1

B.2

C.3

D.switch语句

点击查看答案

第8题

执行下列代码后,输出结果为();

A.2

B.4

C.6

D.8

点击查看答案

第9题

对于有一定规模和生存周期的软件,代码可能经历数位数十位乃至百位程序员阅读。()
点击查看答案

第10题

阅读下列代码: public class Person{ static int arr[]=new int[10]; public static void main
(String args){ System.out.println{arr[9]); } } 该代码的运行结果是()。

A.编译时将产生错误

B.编译时正确,运行时将产生错误

C.输出零

D.输出空

点击查看答案

第11题

电子出版物是指以数字代码方式,将有知识性、思想性内容的信息编辑加工后存储在固定物理形态的磁、光、电等介质上,通过电子阅读显示、播放设备读取使用的大众传播媒。()
点击查看答案
下载APP
关注公众号
TOP
重置密码
账号:
旧密码:
新密码:
确认密码:
确认修改
购买搜题卡查看答案 购买前请仔细阅读《购买须知》
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《服务协议》《购买须知》
立即支付 系统将自动为您注册账号
已付款,但不能查看答案,请点这里登录即可>>>
请使用微信扫码支付(元)

订单号:

遇到问题请联系在线客服

请不要关闭本页面,支付完成后请点击【支付完成】按钮
遇到问题请联系在线客服
恭喜您,购买搜题卡成功 系统为您生成的账号密码如下:
重要提示:请勿将账号共享给其他人使用,违者账号将被封禁。
发送账号到微信 保存账号查看答案
怕账号密码记不住?建议关注微信公众号绑定微信,开通微信扫码登录功能
请用微信扫码测试
优题宝