StringBuilder vs StringBuffer

Initialization

// 在单线程更高效,但在多线程中不安全
everything is as same as StringBuffer

Useful methods

// Some code

Last updated