单项选择题
下列的哪个程序段可能导致错误
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";
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
阅读下面的程序: public class Person int arr[ ]=Hew int[10]; public static void main(String args[ ]) System.out.println(arr[1]); 正确的说法是______。
A) 编译时将产生错误
B) 编译时正确,运行时将产生错误
C) 输出为0
D) 输出为空
点击查看答案&解析
单项选择题
以下for循环的执行次数是 ( )for(int x=0,(x==0)&(x>4);x++);
A) 无限次
B) 一次也不执行
C) 执行4次
D) 执行3次
点击查看答案&解析
相关试题
StringBuffer类提供______字符串对象...
一个关系表的行称为______。
耦合和内聚是评价模块独立性的两个主要标准...
抛出异常的语句是______语句。
下列软件系统结构图 的宽度为 【1】 。