✏️ Explanatory Question

What is the difference between StringBuffer and StringBuilder class?

👁 771 Views
📘 Detailed Answer
No previous question
No next question
💡

Answer with Explanation

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