what is difference between String buffer and String builder?
Answer Posted / rajujohn
hi All
Both are mutable ,that means we can change value of the
instance variable using append,insert and ...
But only one difference when you go for the multi-thread
concept you use StringBuffer,Because it is thread safe ,that
means, if one thread access this stringbuffer variable on
the time another thread cant access this stringbuffer,so
stringbuffer is slowest performance compare to stringbuilder.
by raju.j
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Explain the difference between jvm and jre?
Where are global variables stored?
What is thread synchronization in java?
What is == mean?
Can list be final in java?
What are the Main functions of Java?
what is inner class in java?
What is :: operator in java?
What is the purpose of nested class in java?
Explain runtime exceptions?
Can a constructor call another constructor?
What is Garbage Collection in Java
What is sortedmap interface?
what is thread? What are the high-level thread states? : Java thread
Explain different types of wrapper classes in java?