String和StringBuffer类有什么区别
第1题:
提供长度可变字符串对象的表示的类是( )。
A.String类
B.StringBuffer类
C.Stringinput类
D.StringOutput类
第2题:
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?()
第3题:
下列关于String类和stringBuffer类说法正确的有()。
第4题:
String与StringBuffer最大的区别在于()
第5题:
用于保存创建后可变的字符串对象的类是()。
第6题:
String类和StringBuffer类的区别是什么?StringBuffer类提供了哪些独特的方法?
第7题:
Which methods from the String and StringBuffer classes modify the object on which they are called?()
第8题:
String类是不可变类,一个String对象所包含的字符串内容永远不会被改变
如果对字符串中的内容经常进行操作,特别是内容要修改时,应使用StringBuffer
StringBuffer类是可变类,一个StringBuffer对象所包含的字符串内容可以被添加或修改
字符串缓冲区支持可变的字符串
第9题:
第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的区别()。
第15题:
关于 String、StringBuffer 和 StringBuilder 说法错误的是()
第16题:
关于String和StringBuffer,下面那些是正确的:()
第17题:
下列关于字符串的描叙中错误的是()。
第18题:
关于String,StringBuilder以及StringBuffer,描述错误的是()。
第19题:
String类的concat()方法与StringBuffer类的append()方法都可以连接两个字符串,它们之间有何不同?
第20题:
常量字符串使用String,非常量字符串使用StringBuffer。
使用StringBuffer的时候设置初始容量。
尽量使用StringTokenizer代替indexOf()和substring()。
尽量不要使用StringBuffer,StringTokenizer类。
第21题:
static
abstract
final
private
第22题:
第23题: