stringbuilder java

Solutions on MaxInterview for stringbuilder java by the best coders in the world

showing results for - "stringbuilder java"
Lewis
01 May 2017
1StringBuilder stringBuilder = new StringBuilder();
2
3stringBuilder.append("string");
4
5System.out.println("String = " + stringBuilder.toString());
Tracey
07 Feb 2019
1StringBuilder objects are like String objects, except that they can be modified
Martina
26 Feb 2017
1Java StringBuilder class is used to create
2  mutable (modifiable) string. The Java
3  StringBuilder class is same as StringBuffer
4  class except that it is non-synchronized.
5    
6StringBuilder()
7    creates an empty string Builder with the initial capacity of 16.
8StringBuilder(String str)
9    creates a string Builder with the specified string.
10StringBuilder(int length)
11    creates an empty string Builder with the specified capacity as length.    
Dottie
17 Nov 2019
1It is mutable char sequence and it is not
2thread safe.