Why is StringBuffer called mutable?

Java Programming Language >   Fundamentals of Object-Oriented Programming >   Object-Oriented Paradigm  

Short Question

2891


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.


This Particular section is dedicated to Question & Answer only. If you want learn more about Java Programming Language. Then you can visit below links to get more depth on this subject.




Join Our telegram group to ask Questions

Click below button to join our groups.