StringBuilder is less efficient and slower than StringBuffer. State true or false.
Select one:
True
False
Answers
Answered by
3
Answer:
The statement is True .
Thank you .
Answered by
1
Answer: The answer is FALSE.
Explanation:
1) StringBuffer is synchronized i.e. thread safe. It means two threads can't call the methods of StringBuffer simultaneously.
StringBuilder is non-synchronized i.e. not thread safe. It means two threads can call the methods of StringBuilder simultaneously.
2) StringBuffer is less efficient than StringBuilder.
Similar questions