String 和StringBuffer的区别
第1题:
String类型与StringBuffer类型的区别是什么?
第2题:
String与StringBuffer的区别()。
第3题:
String与StringBuffer最大的区别在于()
第4题:
关于String和StringBuffer,下面那些是正确的:()
第5题:
String类和StringBuffer类的区别是什么?StringBuffer类提供了哪些独特的方法?
第6题:
Which methods from the String and StringBuffer classes modify the object on which they are called?()
第7题:
第8题:
常量字符串使用String,非常量字符串使用StringBuffer。
使用StringBuffer的时候设置初始容量。
尽量使用StringTokenizer代替indexOf()和substring()。
尽量不要使用StringBuffer,StringTokenizer类。
第9题:
对String对象的任何改变都不影响到原对象,相关的任何change操作都会生成新的对象
StringBuffer是线程安全
StringBuilder是线程安全
可以修改StringBuilder和StringBuffer的内容
第10题:
The charAt() method of the String class.
The toUpperCase() method of the String class.
The replace() method of the String class.
The reverse() method of the StringBuffer class.
The length() method of the StringBuffer class.
第11题:
第12题:
第13题:
举例说明String和StringBuffer的区别和应用场合。
第14题:
关于 String、StringBuffer 和 StringBuilder 说法错误的是()
第15题:
String对象和StringBuffer对象都是字符串变量,创建后都可以修改
第16题:
STRING与STRINGBUFFER的区别是什么?
第17题:
关于String,StringBuilder以及StringBuffer,描述错误的是()。
第18题:
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?()
第19题:
第20题:
static
abstract
final
private
第21题:
第22题:
第23题:
它们没有区别
String对原字符串的拷贝进行操作,而StringBuffer对原字符串本事操作
StringBuffer拥有更多相关函数
String更节省空间