StringBuffer (一个线程安全的可变字符串序列,用于多线程)
A thread-safe, mutable sequence of characters.
StringBuilder (可变字符串序列,是StringBuffer用于单线程时的替代,效率高)
A mutable sequence of characters.
StringBuffer (一个线程安全的可变字符串序列,用于多线程)
A thread-safe, mutable sequence of characters.
StringBuilder (可变字符串序列,是StringBuffer用于单线程时的替代,效率高)
A mutable sequence of characters.