StringBuffer append(数值类型 t),参数t可以是boolean、int、char、float、double、long
第1题:
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?()
第3题:
Linux用dev_t类型来描述设备号,dev_t是32位数值类型,其中高12位表示次设备号,低20位表示主设备号。()
第4题:
多样本计量资料的比较,当分布类型不清时选择()。
第5题:
已定义好有参函数f(m),其中形参m是整形量。下面调用该函数,传递参数为5,将返回的函数值赋给变量t。以下正确的是()。
第6题:
下列哪个参数是周期性位置更新参数()
第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?()
第8题:
String类的concat()方法与StringBuffer类的append()方法都可以连接两个字符串,它们之间有何不同?
第9题:
T=1ms,T=1ms,T=0ms,T=20ms
T=50~150ms,T=50~150ms,T=30~100ms,T=500~1000ms
T=400~600ms,T=400~600ms,T=200~300ms,T=1000~5000ms
T=10~50ms,T=10~50ms,T=1ms,T=50~150ms
T=150~300ms,T=150~300ms,T=100~200ms,T=1000~3000ms
第10题:
第11题:
对
错
第12题:
The program prints “ABBCAD”
The program prints “CDDACB”
The program prints “ADCBADBC”
The output is a non-deterministic point because of a possible deadlock condition.
The output is dependent on the threading model of the system the program is running on.
第13题:
字符串的append函数可以添加多种内容,以下append函数的使用中,错误的是() StringBuffer strb1 = new StringBuffer(); Integer intObj = new Integer(33);
第14题:
表面粗糙度可同时标出上、下限参数值,也可只标下限参数值。
第15题:
2t/h是下列反映锅炉工作特性基本参数中()的参数值。
第16题:
有模板说明template< typename T >则T在函数模板中()
第17题:
参数T-add,T-drop,TT-drop,T-comp属于()的切换参数。
第18题:
定义有StringBuffer s1=new StringBuffer(10);s1.append(“1234”)则s1.length()和s1.capacity()分别是多少?
第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? ()
第20题:
UNIX系统下tar命令可同时使用-c/-x/-t参数。
第21题:
蒸发量
供热量
压力
温度
第22题:
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 + “>”;
第23题: