网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

StringBuffer deleteCharAt(int index)表示删除索引index-1处的字符


参考答案

更多 “StringBuffer deleteCharAt(int index)表示删除索引index-1处的字符” 相关考题
考题 下面是一段javabean程序,该程序的运行结果是(62)。 public class NullTest { public static void main(String[] args) { int M = 0; String str = null; StringBuffer sb = new StringBuffer("= "); sb.append(str); sb.append(M++); System.out.println(sb.toString()); } }A.=nullB.=null0C.=null1D.=nullM

考题 Which two scenarios are NOT safe to replace a StringBuffer object with a StringBuilder object?() A.When using versions of Java technology earlier than 5.0.B.When sharing a StringBuffer among multiple threads.C.When using the java.io class StringBufferInputStream.D.When you plan to reuse the StringBuffer to build more than one string.

考题 String与StringBuffer的区别,以及"+"与append的区别?

考题 String 和StringBuffer的区别

考题 Why we use StringBuffer when concatenating strings?

考题 5 string 和 stringbuffer的区别?

考题 设StringBuffer s=new StringBuffer("Sunday"),那么s.capacity( )的值为6

考题 举例说明String和StringBuffer的区别和应用场合。

考题 Whichtwo scenarios are NOT safe to replace a StringBuffer object with a StringBuilder object?()A、When using versions of Java technology earlier than 5.0.B、When sharing a StringBuffer among multiple threads.C、When using the java.io class StringBufferInputStream.D、When you plan to reuse the StringBuffer to build more than one string.E、Enitiation of separate design processes to the separation of users

考题 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?()

考题 关于 String、StringBuffer 和 StringBuilder 说法错误的是()A、String 创建的字符串是不可变的B、StringBuffer 创建的字符串是可变的,而所引用的地址一直不变C、StringBuffer 是线程安全的,因此性能比 StringBuilder 好D、StringBuilder 没有实现线程安全,因此性能比 StringBuffer 好

考题 StringBuffer reverse( )是将字符串倒序

考题 StringBuffer append(数值类型 t),参数t可以是boolean、int、char、float、double、long

考题 关于String和StringBuffer,下面那些是正确的:()A、常量字符串使用String,非常量字符串使用StringBuffer。B、使用StringBuffer的时候设置初始容量。C、尽量使用StringTokenizer代替indexOf()和substring()。D、尽量不要使用StringBuffer,StringTokenizer类。

考题 下列关于字符串的描叙中错误的是()。A、字符串是对象B、String对象存储字符串的效率比StringBuffer高C、可以使用StringBuffer sb="这里是字符串"声明并初始化StringBuffer对象sbD、String类提供了许多用来操作字符串的方法:连接,提取,查询等

考题 STRING与STRINGBUFFER的区别是什么?

考题 String类和StringBuffer类的区别是什么?StringBuffer类提供了哪些独特的方法?

考题 关于String,StringBuilder以及StringBuffer,描述错误的是()。A、对String对象的任何改变都不影响到原对象,相关的任何change操作都会生成新的对象B、StringBuffer是线程安全C、StringBuilder是线程安全D、可以修改StringBuilder和StringBuffer的内容

考题 Which methods from the String and StringBuffer classes modify the object on which they are called?()  A、The charAt() method of the String class.B、The toUpperCase() method of the String class.C、The replace() method of the String class.D、The reverse() method of the StringBuffer class.E、The length() method of the StringBuffer class.

考题 多选题关于String和StringBuffer,下面那些是正确的:()A常量字符串使用String,非常量字符串使用StringBuffer。B使用StringBuffer的时候设置初始容量。C尽量使用StringTokenizer代替indexOf()和substring()。D尽量不要使用StringBuffer,StringTokenizer类。

考题 判断题StringBuffer deleteCharAt(int index)表示删除索引index-1处的字符A 对B 错

考题 单选题Which methods from the String and StringBuffer classes modify the object on which they are called?()A The charAt() method of the String class.B The toUpperCase() method of the String class.C The replace() method of the String class.D The reverse() method of the StringBuffer class.E The length() method of the StringBuffer class.

考题 多选题Which two scenarios are NOT safe to replace a StringBuffer object with a StringBuilder object?()AWhen using versions of Java technology earlier than 5.0.BWhen sharing a StringBuffer among multiple threads.CWhen using the java.io class StringBufferInputStream.DWhen you plan to reuse the StringBuffer to build more than one string.

考题 问答题String和StringBuffer类有什么区别

考题 问答题String类和StringBuffer类的区别是什么?StringBuffer类提供了哪些独特的方法?

考题 单选题Given this method in a class:  public String toString() {  StringBuffer buffer = new StringBuffer();  buffer.append(‟‟);  return buffer.toString();  }  Which is true?()A  This code is NOT thread-safe.B  The programmer can replace StringBuffer with StringBuilder with no other changes.C  This code will perform well and converting the code to use StringBuilder will not enhance the performance.D  This code will perform poorly. For better performance, the code should be rewritten: return ““+ this.name + “”;

考题 判断题StringBuffer append(数值类型 t),参数t可以是boolean、int、char、float、double、longA 对B 错