StringBuffer和StringBuilder的区别 StringBuffer中有同步锁synchronized,所以是安全的,但是速度慢 StringBuilder无同步锁,速度快,不安全,单线程的时候用