InterviewSolution
| 1. |
What Is Stringbuilder In Java? |
|
Answer» StringBuilder class (Added in Java 5),just like StringBuffer, is a mutable(MODIFIABLE) sequence of characters which is in contrast to String class which is an IMMUTABLE sequence of characters. Thus in case of StringBuilder length and CONTENT of the sequence can be CHANGED through certain method calls. StringBuilder class (Added in Java 5),just like StringBuffer, is a mutable(modifiable) sequence of characters which is in contrast to String class which is an immutable sequence of characters. Thus in case of StringBuilder length and content of the sequence can be changed through certain method calls. |
|