欢迎来到计算机考试题库网 考试题库官网
全部科目 > Java认证考试 > SCJP程序员认证考试

填空题

Public class test (   
Public static void stringReplace (String text) (   
Text = text.replace („j„ , „i„);   
)    
 public static void bufferReplace (StringBuffer text) (   
text = text.append (“C”)   )    
 public static void main (String args ){ 
String textString = new String (“java”);   
StringBuffer text BufferString = new StringBuffer (“java”);     
stringReplace (textString);   
BufferReplace (textBuffer);     
System.out.printIn (textString + textBuffer);  
 }  
)  
What is the output?()

    【参考答案】

    javajavaC

    点击查看答案

    相关考题