多项选择题
Which of the following fragments might cause errors?()
A. String s = "Gone with the wind";String t = " good ";String k = s + t;
B. String s = "Gone with the wind";String t;t = s[3] + "one";
C. String s = "Gone with the wind";String standard = s.toUpperCase();
D. String s = "home directory";String t = s - "directory";
点击查看答案&解析
相关考题
-
单项选择题
Whichstatementofassigningalongtypevariabletoahexadecimalvalueiscorrect?()
A. long number = 345L;
B. long number = 0345;
C. long number = 0345L;
D. long number = 0x345L; -
多项选择题
Whichdeclarationsofidentifiersarelegal?()
A. $persons
B. TwoUsers
C. *point
D. this
E. _endline -
单项选择题
Whichofthefollowingrangeofshortiscorrect?()
A. -27 -- 27-1
B. 0 -- 216-1
C. -215 -- 215-1
D. -231 -- 231-1
