String与StringBuffer的区别,以及"+"与append的区别?
第1题:
String和StringBuffer类有什么区别
第2题:
举例说明String和StringBuffer的区别和应用场合。
第3题:
String与StringBuffer的区别()。
第4题:
STRING与STRINGBUFFER的区别是什么?
第5题:
关于String,StringBuilder以及StringBuffer,描述错误的是()。
第6题:
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?()
第7题:
以下语句的含义是() char[] arrcrlf={13,10}; String crlf=new String(arrcrlf); stringBuffer dest = new StringBuffer("西行漫记"); dest.append(crlf);
第8题:
第9题:
第10题:
字符串西行漫记不变
字符串西行漫记的最后一个字被删除
语句存在语法错误
在字符串西行漫记的后面加回车换行符
第11题:
第12题:
第13题:
String类型与StringBuffer类型的区别是什么?
第14题:
字符串的append函数可以添加多种内容,以下append函数的使用中,错误的是() StringBuffer strb1 = new StringBuffer(); Integer intObj = new Integer(33);
第15题:
String与StringBuffer最大的区别在于()
第16题:
String类和StringBuffer类的区别是什么?StringBuffer类提供了哪些独特的方法?
第17题:
Given this method in a class: public String toString() { StringBuffer buffer = new StringBuffer(); buffer.append(‟<‟); buffer.append(this.name); buffer.append(‟>‟); return buffer.toString(); } Which is true?()
第18题:
String类的concat()方法与StringBuffer类的append()方法都可以连接两个字符串,它们之间有何不同?
第19题:
This code is NOT thread-safe.
The programmer can replace StringBuffer with StringBuilder with no other changes.
This code will perform well and converting the code to use StringBuilder will not enhance the performance.
This code will perform poorly. For better performance, the code should be rewritten: return “<“+ this.name + “>”;
第20题:
第21题:
第22题:
第23题:
它们没有区别
String对原字符串的拷贝进行操作,而StringBuffer对原字符串本事操作
StringBuffer拥有更多相关函数
String更节省空间