首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
阅读下列代码后 public class Person{ int art[]=new int[10]; public static void main(String args[]){ System.out.
阅读下列代码后 public class Person{ int art[]=new int[10]; public static void main(String args[]){ System.out.
admin
2013-03-01
26
问题
阅读下列代码后 public class Person{ int art[]=new int[10]; public static void main(String args[]){ System.out.println(arr[1]); } } 正确的说法是( )。
选项
A、编译时将产生错误
B、编译时正确,运行时将产生错误
C、输出零
D、输出空
答案
1
解析
转载请注明原文地址:https://kaotiyun.com/show/vV2p777K
本试题收录于:
二级Java题库NCRE全国计算机二级分类
0
二级Java
NCRE全国计算机二级
相关试题推荐
如果文件a.txt在目录C:\\A下,执行以下程序会发生什么操作()。importosos.rmdir(r’C:\\A’)
以下程序执行后,book.txt文件的内容是()。fo=open(”book.txt”,”w”)ls=[’book’,’23’,’201009’,’20’]fo.write(str(ls))fo.close()
在下面附属类方法中的下划线处应填入的正确参数是publicvoidwriteData()throwsIOException{GregorianCalendarcalendar=newGregorianCalendar();cal
执行下列程序段之后,变量c的值为______。publicclassex45{publicstaticvoidmain(String[]args){
以下的变量定义语句中,合法的是______。
若a、b为血型变量,并且已分别赋值为5和10,则表达式(a++)+(++b)+a*b的值是______。
当局部变量的名字和类的成员变量的名字相同时,类的成员变量将被隐藏。为了在方法中使用成员变量,并且与局部变量加以区分,必须使用______。
【】的目的是检查模块是否正确的组合在一起,是否能够实现规格说明文档对产品功能的要求。
关系中的属性或属性组合,其值能够唯一地标识一个元组,该属性或属性组合可选做为【】。
随机试题
下列不属于C语言标识符的是()
采用不同形状、大小和颜色的符号,表示呈点状分布物体的位置的方法是()。
由于消费者对某产品缺乏了解,导致该产品在市场上难以打开销路。市场对该产品的需求状况称为()。
一般资料:求助者,女性,26岁,公务员。案例介绍:四个月前求助者父亲突发脑梗塞去世,她和父亲感情很好,感到很悲痛,此后心情一直不好。一个月前的一天,求助者早上醒来,觉得胸闷,怀疑自己得了心脏病,去医院做检查,未见异常。自此开始经常觉得身体不适,听
“茶壶里煮饺子,有话说不出来。”这表现的是记忆缺乏()。
在考生文件夹下打开文档WORD.DOCX,按照要求完成下列操作并以该文件名(WORD.DOCX)保存文档。某高校为了使学生更好地进行职场定位和职业准备、提高就业能力,该校学工处将于2013年4月29日(星期五)19:30—21:30在校国际会议中
Thispartistotestyourabilitytodopracticalwriting.Youarerequiredtowriteanoteaccordingtothefollowinginformati
A、Heisclever.B、Heissevere.C、Heisnotnaughty.D、Heisnaughty.C题目问的是男士现在怎么样。对话中女士说记得男士很淘气,而男士回答说现在不再淘气了,12年里,有许多事情都变化了。故
PeoplehavewonderedforalongtimehowtheirpersonalitiesandbehaviorsareformedItisnoteasytoexplainwhyonepersoni
Nowadaysmoreandmoreforeignenterprisesandcompaniesarenolongerrelyingoninterviewsfor【B1】______.Yearsofstudyingin
最新回复
(
0
)