Difference between String, String Builder, and String Buffer.

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

Point of distinction String String Builder String Buffer
Storage Area Constant String Pool Heap Area Heap Area
Mutability Immutable Mutable Mutable
Thread Safety Yes Yes No
Performance Fast Slow Fast

 

Next Question: