Cosmic Q&A
What is StringBuilder class?
Answer
What if we have many frequent operations on Strings? Since String is immutable it may not be very efficient to keep creating new Strings every time a modification is made on the String. StringBuilder is a class representing Strings that are mutable. It is achieved internally by representing Strings are character array and performing modifications on the Array.
Share this page:
Report Error in Content