StringBuffer class is thread-safe i.e. multiple threads cannot access it simultaneously - Core Java

Q.  Which class is thread-safe i.e. multiple threads cannot access it simultaneously,So it is safe and will result in an order?
- Published on 17 Jul 15

a. StringBuffer class
b. StringBuilder class
c. Both A & B
d. None of the above

ANSWER: StringBuffer class

Post your comment / Share knowledge


Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)