题目内容
给出如下程序段:public class Test { public static void main( ) { String s = "Dhee"; StringBuffer str = new StringBuffer("Dhee"); Test test = new Test(); test.methodA(s); test.methodB(str); System.out.println(s + " " + str); } public void methodA(String s) { s += "1"; } public void methodB(StringBuffer str) { str.append("2"); }}下面选项正确的是:【选择一项】
查看答案
搜索结果不匹配?点我反馈