Answer Posted / srinu
StringBuffer:-
1)All methods in String Buffer class are Synchronized.
2)Performance is slow because these are synchronized.
StringBuilder:-
1)StringBuilder class methods are not synchronized.
2)performance is faster.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How is a java object message delivered to a non-java client?
What is the infobus?
What class is the top of the awt event hierarchy?
Explain ioc concept?
how to use debug in my elipse to solve problems that exist in my project
Why are my checkboxes not being set from on to off?
When is the best time to validate input?
AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?
What are the purpose of introspection?
What is scalable, portability in the view of J2EE?
How substring() method of string class create memory leaks?
Can I use javascript to submit a form?
What is the purpose of the wait() method?
Is the ternary operator written x : y ? Z or x ? Y : z ?
Explain the steps in details to load the server object dynamically?