black

SCJP程序员认证考试

登录

单项选择题

String a = “ABCD”; 
String b = a.toLowerCase(); 
b.replace(‘a’, ‘d’); 
b.replace(‘b’, ‘c’); 
System.out.println(b);  
What is the result? () 

A. abcd
B. ABCD
C. dccd
D. dcba
E. Compilation fails.
F. An exception is thrown at runtime.

相关考题

单项选择题 System.out.println(Math.sqrt(-4D));Whatistheresult?()

单项选择题 Whichinterfacedoesjava.util.Hashtableimplement?()

单项选择题 publicclassTest{ publicstaticvoidmain(String[]args){ Stringstr=NULL; System.out.println(str); } } Whatistheresult?()

All Rights Reserved 版权所有©建筑考试题库(jzkao.com)

备案号:湘ICP备2020024380号-3