Differentiate between String and StringBuffer objects.

Short Answer
Views 16

Answer:

The string objects of Java are immutable. If any change occurs in a string object, the original string remains unchanged and a new string is created with the changed string. StringBuffer objects are mutable, meaning these objects can be manipulated and modified as desired.

Related Articles:

This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.

Join Our telegram group to ask Questions

Click below button to join our groups.