更多“StringBuffer append(数值类型 t),参数t可”相关问题
  • 第1题:

    String类型与StringBuffer类型的区别是什么?


    正确答案:String类型的字符串是对原字符串的拷贝进行操作,而StringBuffer类型的字符串是对原字符串本身进行操作的,操作后的结果会使原字符串发生改变。

  • 第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?()


    正确答案:JAVAJAVA

  • 第3题:

    Linux用dev_t类型来描述设备号,dev_t是32位数值类型,其中高12位表示次设备号,低20位表示主设备号。()


    正确答案:错误

  • 第4题:

    多样本计量资料的比较,当分布类型不清时选择()。

    • A、t’检验
    • B、t检验
    • C、U检验
    • D、非参数检验
    • E、方差分析

    正确答案:D

  • 第5题:

    已定义好有参函数f(m),其中形参m是整形量。下面调用该函数,传递参数为5,将返回的函数值赋给变量t。以下正确的是()。

    • A、t=f(m)
    • B、t=Callf(m)
    • C、t=f(5)
    • D、t=Callf(5)

    正确答案:C

  • 第6题:

    下列哪个参数是周期性位置更新参数()

    • A、T3101
    • B、T3102
    • C、T3212
    • D、T3122

    正确答案:C

  • 第7题:

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

    • 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 + “>”;

    正确答案:B

  • 第8题:

    String类的concat()方法与StringBuffer类的append()方法都可以连接两个字符串,它们之间有何不同?


    正确答案:String的concat()方法不改变原字符串本身,而是产生一个新的字符串。StringBuffer的append()方法则改变其中的字符串内容,而不产生一个新的对象。

  • 第9题:

    配伍题
    神经失用而肌肉无失神经可参考使用的脉冲电流参数( )|重度失神经可参考使用的脉冲电流参数( )|中度失神经可参考使用的脉冲电流参数( )
    A

    T=1ms,T=1ms,T=0ms,T=20ms

    B

    T=50~150ms,T=50~150ms,T=30~100ms,T=500~1000ms

    C

    T=400~600ms,T=400~600ms,T=200~300ms,T=1000~5000ms

    D

    T=10~50ms,T=10~50ms,T=1ms,T=50~150ms

    E

    T=150~300ms,T=150~300ms,T=100~200ms,T=1000~3000ms


    正确答案: A,E,B
    解析: 暂无解析

  • 第10题:

    问答题
    String类的concat()方法与StringBuffer类的append()方法都可以连接两个字符串,它们之间有何不同?

    正确答案: String的concat()方法不改变原字符串本身,而是产生一个新的字符串。StringBuffer的append()方法则改变其中的字符串内容,而不产生一个新的对象。
    解析: 暂无解析

  • 第11题:

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

    B


    正确答案:
    解析: 暂无解析

  • 第12题:

    多选题
    public class SyncTest{   public static void main(String args) {    final StringBuffer s1= new StringBuffer();    final StringBuffer s2= new StringBuffer();    new Thread () {    public void run() {   synchronized(s1) {   s2.append(“A”);   synchronized(s2) {    s2.append(“B”);    System.out.print(s1);    System.out.print(s2);   }   }    }    }.start();   new Thread() {   public void run() {   synchronized(s2) {  s2.append(“C”);  synchronized(s1) {   s1.append(“D”);  System.out.print(s2);  System.out.print(s1);   }   }    }   }.start();   }   }   Which two statements are true? ()
    A

    The program prints “ABBCAD”

    B

    The program prints “CDDACB”

    C

    The program prints “ADCBADBC”

    D

    The output is a non-deterministic point because of a possible deadlock condition.

    E

    The output is dependent on the threading model of the system the program is running on.


    正确答案: E,D
    解析: 暂无解析

  • 第13题:

    字符串的append函数可以添加多种内容,以下append函数的使用中,错误的是() StringBuffer strb1 = new StringBuffer();  Integer intObj = new Integer(33);

    • A、strb1.append(3.14159);
    • B、strb1.append(’数’);
    • C、strb1.append(true);
    • D、strb1.append(intObj);

    正确答案:D

  • 第14题:

    表面粗糙度可同时标出上、下限参数值,也可只标下限参数值。


    正确答案:错误

  • 第15题:

    2t/h是下列反映锅炉工作特性基本参数中()的参数值。

    • A、蒸发量
    • B、供热量
    • C、压力
    • D、温度

    正确答案:A

  • 第16题:

    有模板说明template< typename T >则T在函数模板中()

    • A、可以做为返回类型、参数类型和函数中的变量类型
    • B、只能做为函数返回类型
    • C、只能做为函数参数类型
    • D、只能用于函数中的变量类型

    正确答案:A

  • 第17题:

    参数T-add,T-drop,TT-drop,T-comp属于()的切换参数。


    正确答案:CDMA2000 1x系统

  • 第18题:

    定义有StringBuffer s1=new StringBuffer(10);s1.append(“1234”)则s1.length()和s1.capacity()分别是多少?

    • A、4;10
    • B、4;4
    • C、10;10
    • D、10;4

    正确答案:A

  • 第19题:

    public class SyncTest{   public static void main(String args) {    final StringBuffer s1= new StringBuffer();    final StringBuffer s2= new StringBuffer();    new Thread () {    public void run() {   synchronized(s1) {   s2.append(“A”);   synchronized(s2) {    s2.append(“B”);    System.out.print(s1);    System.out.print(s2);   }   }    }    }.start();   new Thread() {   public void run() {   synchronized(s2) {  s2.append(“C”);  synchronized(s1) {   s1.append(“D”);  System.out.print(s2);  System.out.print(s1);   }   }    }   }.start();   }   }   Which two statements are true? ()

    • A、 The program prints “ABBCAD”
    • B、 The program prints “CDDACB”
    • C、 The program prints “ADCBADBC”
    • D、 The output is a non-deterministic point because of a possible deadlock condition.
    • E、 The output is dependent on the threading model of the system the program is running on.

    正确答案:B,D

  • 第20题:

    UNIX系统下tar命令可同时使用-c/-x/-t参数。


    正确答案:错误

  • 第21题:

    单选题
    2t/h是下列反映锅炉工作特性基本参数中()的参数值。
    A

    蒸发量

    B

    供热量

    C

    压力

    D

    温度


    正确答案: A
    解析: 暂无解析

  • 第22题:

    单选题
    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 + “>”;


    正确答案: B
    解析: 暂无解析

  • 第23题:

    填空题
    参数T-add,T-drop,TT-drop,T-comp属于()的切换参数。

    正确答案: CDMA2000 1x系统
    解析: 暂无解析