0
3.1kviews
Difference Between String and StringBuffer in Java
1 Answer
0
16views

Following are the differences between Java String and StringBuffer.

Java String

(1) Java string object is immutable i.e you can't change the value of string after it created.

(2) The performance of string is slow because it creates a new instance every time when we concat a string.

(3) String …

Create a free account to keep reading this post.

and 2 others joined a min ago.

Please log in to add an answer.