试题详情
多项选择题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.

  • A,B
  • 关注下方微信公众号,在线模考后查看

热门试题