欢迎来到易学考试网 易学考试官网
全部科目 > 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.printLn (textString + textBuffer); 

) 
What is the output?()

    【参考答案】

    javajavaC

    点击查看答案

    相关考题

    微信小程序免费搜题
    微信扫一扫,加关注免费搜题

    微信扫一扫,加关注免费搜题