首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
给出下面的程序: public class ex49 { static int arr[] = new int[10]; public static void main(Stri
给出下面的程序: public class ex49 { static int arr[] = new int[10]; public static void main(Stri
admin
2008-01-11
34
问题
给出下面的程序: public class ex49 { static int arr[] = new int[10]; public static void main(String args [] ) { System.out.println (art [1] ); } } ______叙述是正确的。
选项
A、编译时将发生错误
B、输出为 null
C、输出为0
D、编译时正确但是运行时出错
答案
C
解析
转载请注明原文地址:https://kaotiyun.com/show/YInp777K
本试题收录于:
二级Java题库NCRE全国计算机二级分类
0
二级Java
NCRE全国计算机二级
相关试题推荐
假设查询文件(myquery.qpr)已经创建,要显示查询结果,可使用命令
在VisualFoxPro中,查询设计器和视图设计器很像,如下描述正确的是
假定一个表单里有一一个文本框Text1和一个命令按钮组CommandGroup1。命令按钮组是一个容器对象,其中包含Command1和Command2两个命令按钮。如果要在Command1命令按钮的某个方法中访问文本框的Value属性值,正确的表达式是(
(1)编写程序three.prg完成下列操作:根据“外汇汇率”表中的数据产生rate表中的数据。要求:将所有“外汇汇率”表中的数据插入rate表中并且顺序不变,由于“外汇汇率”中的“币种1”和“币种2”存放的是外币名称,而rate表中的“币种1代
作为整个应用程序入口点的主程序至少应具有以下功能()。
数据库技术的根本目标是()。
首先为order_detail表增加一个新字段:新单价(类型与原来的单价字段相同),然后编写满足如下要求的程序:根据order_list表中的“订购日期”字段的值确定order_detail表的“新单价”字段的值,原则是:“订购日期”为2001年的“新单价
(1)打开程序文件cylinder.prg,请按要求修改程序并运行程序。(2)以表employee.dbf和orders.dbf中数据为基础,使用SQL命令检索订单数最多的前3名职工的职工号、姓名和订单数,检索结果按订单数降序排序存入表newco
下列关于接收参数和传送参数的说法中,正确的是()。
随机试题
为解决之间食物嵌塞,设计卡环固位体时,应设计为
下列除哪项外均为痢疾的治法
用冰醋酸作溶剂使用( )。能使不同酸的强度相等使用( )。
(2010年)重为W的货物由电梯载运下降,当电梯加速下降、匀速下降及减速下降时,货物对地板的压力分别为R1、R2、R3,它们之间的关系为()。
楼梯建筑物中联系上下各层的垂直交通设施,规范规定梯段净高不应小于(),平台处的净空高度不应小于()。
( )属于银行汇票绝对记载事项。
下列交易中,潜在盈利有可能无限大的是()。
“师夷长技以制夷”出自魏源编写的()。
Java中线程是由线程类的()方法定义的。
数据库应用系统中的核心问题是
最新回复
(
0
)