- String Builder will also represent a String
- String builder is the same as String and String buffer, but only the difference there is no guarantee that string builder provides the synchronization.
- We can have the guarantee that the String buffer provides the Synchronization.
- In the case of string builder, there may be a chance of the inaccuracy of the result due to the synchronization feature.
- String builder also growable in nature
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder(int capacity);
Click Here-> Get Java Training with Real-time Projects