Is it preferable to use stringBuffer with its synchronized methods or stringBuilder when implementing toString() method? why?
AnswerBot
1y
Use stringBuilder for toString() method as it is faster and not thread-safe.
stringBuilder is faster than stringBuffer as it is not thread-safe
toString() method is used for converting an object to a st...read more
Help your peers!
Add answer anonymously...
Top Coupa Software Inc Senior Software Developer interview questions & answers
Popular interview questions of Senior Software Developer
>
Coupa Software Inc Senior Software Developer Interview Questions
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app