题目内容

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

查看答案
更多问题

从事会计工作的必须取得()

常用的参数传递方式有哪三种?

试述预防病毒性肝炎的综合性措施。

丝虫病的早期表现可有急性淋巴管炎、淋巴结炎和象皮肿。

A. 正确
B. 错误

答案查题题库