Don't let the Lockdown slow you Down - Enroll Now and Get 3 Course at 24,999/- Only. Explore Now!

General

java string builder

Java StringBuilder

Java StringBuilder

  • 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

Syntax

StringBuilder sb = new StringBuilder();
StringBuilder sb = new StringBuilder(int capacity);

StringBuilder

Click Here-> Get Java Training with Real-time Projects

Scroll Up
Besant Technologies WhatsApp