+ 5

What is the difference between String,StringBuffer & StringBuilder?

Hard to learn.

9th Apr 2017, 2:29 PM
Deepak Singh
Deepak Singh - avatar
3 Answers
+ 4
1. String is Immutable and Synchronised, I.e unchangeable n thread safe. 2. String Buffer is mutable and Synchronised, I.e changable and thread safe. 3. String Builder is mutable and unsynchronised, I.e changable and not thread safe.
9th Apr 2017, 4:31 PM
Anand Barnwal
Anand Barnwal - avatar
+ 2
Thread safe means at a time only one thread can access the data type.
1st May 2017, 10:22 PM
Anand Barnwal
Anand Barnwal - avatar
+ 1
What does thread safe means ?
1st May 2017, 6:03 PM
Nantha
Nantha - avatar