The StringBuilder class is used to create mutable (modifiable) string. The StringBuilder class is same as StringBuffer class except that it is non-synchronized. It is available since JDK1.5.

Commonly used Constructors of StringBuilder class:

  • StringBuilder(): creates an empty string Builder with the initial capacity of 16.
  • StringBuilder(String str): creates a string Builder with the specified string.
  • StringBuilder(int length): creates an empty string Builder with the specified capacity as length.
Our Services:

Java Training | Python Training | Machine Learning with Python Training | Deep Learning with Python Training | Data Science with Python Training | Projects

Silansoftware Pvt.Ltd, BBSR
Call to: 0674-2361252

Comment