InterviewSolution
Saved Bookmarks
| 1. |
Why Is Stringbuffer Called Mutable? |
|
Answer» The String class is CONSIDERED as IMMUTABLE, so that once it is created a String OBJECT cannot be changed. If there is a NECESSITY to make ALOT of modifications to Strings of characters then StringBuffer should be used. The String class is considered as immutable, so that once it is created a String object cannot be changed. If there is a necessity to make alot of modifications to Strings of characters then StringBuffer should be used. |
|