菜鸟GONGJ,SCJP答案求详解NO.9
gongj 2003-09-10 09:31:37 1) public class Test{
2) public static void stringReplace(String text){
3) text=text.replace('j','l');
4) }
5) public static void bufferReplace(StringBuffer text){
6) text=text.append("c");
7) }
8) public static void main(String args[]){
9) String textString=new String("java");
10) StringBuffer textBuffer=new StringBuffer("java");
11) StringReplace(textString);
12) bufferReplace(textBuffer);
13) System.out.println(textString+textBuffer);
14) }
15) }
what is the output?
请问这题考点是什么?应注意什么?概念?