Difference between String, String Builder, and String Buffer.

Below are the difference between String, String Builder and String Buffer.

Point of distinction String String Buffer String Builder
Storage Area Constant String Pool Heap Area Heap Area
Mutability Immutable Mutable Mutable
Thread Safety Yes. Synchronised and Thread Safe. That means two thread can not call the method of string buffer simultaneously.  Non-Synchronised i.e is not thread safe.
Performance Fast Fast Slow
Efficient - Less Efficient than String Builder More efficient than String Buffer.