单选题String a = null; a.concat(“abc”); a.concat(“def”); System.out.println(a); What is the result?()A
abcB
nullC
abcdefD
Compilation fails.E
The code runs with no output.F
An exception is thrown at runtime.
题目
单选题
String a = null; a.concat(“abc”); a.concat(“def”); System.out.println(a); What is the result?()
A
abc
B
null
C
abcdef
D
Compilation fails.
E
The code runs with no output.
F
An exception is thrown at runtime.
更多“单选题String a = null; a.concat(“abc”); a.concat(“def”); System.out.println(a); What is the result?()A
abcB
nullC
abcdefD
Compilation fails.E
The code runs with no output.F
An exception is thrown at runtime.”相关问题