首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列的哪个程序段可能导致错误? ( )
下列的哪个程序段可能导致错误? ( )
admin
2013-03-01
22
问题
下列的哪个程序段可能导致错误? ( )
选项
A、String s="hello"; String t="good"; String k=s+t;
B、String s="hello"; String t; t=s[3]+"one";
C、String s="hello"; String standard=s.toUpperCase();
D、String s="hello"; String t=s+"good";
答案
2
解析
转载请注明原文地址:https://kaotiyun.com/show/c82p777K
本试题收录于:
二级Java题库NCRE全国计算机二级分类
0
二级Java
NCRE全国计算机二级
相关试题推荐
以下关于文件的描述,错误的是()。
软件需求规格说明书的内容不包括()。
在结构化方法中,用数据流程图(DFD)作为描述工具的软件开发阶段是
下列Applet将已知char型数组各元素的值(设分别为65,66,70,80,67,78)显示在屏幕上。选择正确的语句填入横线处。importjava.awt.*;importjava.applet.*;pu
下列属于Java流程控制结构的语句是
下列叙述中,不属于软件需求规格说明书的作用的是______。
下面是一个字符界面的JavaApplication程序,它接受用户输入的一个浮点数,并将它的整数部分和小数部分分别输出。请勿改动原有代码,在下画线处填人适当语句,将程序补充完整。importjava.io.*;publicclass
下面是一个Applet程序,设置其宽高为300和300像素,程序的功能是在小程序界面画一根水平线和一根垂直线,将小程序界面均分为4个区域,鼠标在不同的区域移动时显示不同的几何图形。请改正程序中的错误(有下划线的语句),使程序能输出正确的结果。注意:
下列标识符中哪个是不合法的?()
Character流与Byte流的区别是()。
随机试题
下列不属于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
)