2009年2月20日 星期五

第175題

Which two scenarios are NOT safe to replace a StringBuffer object with a StringBuilder object? (Choose two.)
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
答案:AB
參考:11-2 文字類型

沒有留言:

張貼留言