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|
|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.|
|Efficient||-||Less Efficient than String Builder||More efficient than String Buffer.|