What is the difference between StringBuffer and StringBuilder class?

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

Short Question

825


Answer:

Use StringBuilder whenever possible because it is faster than StringBuffer. But, if thread safety is necessary then use StringBuffer objects.


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.