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
What are JTA/JTS and how they used by client?
Can you control when passivation occurs?
What restrictions are placed on the values of each case of a switch statement?
Which javutil classes and interfaces support event handling?
Difference between DurableSubscription and non- DurableSubscription?
What classes of exceptions may be caught by a catch clause?
Do we need to override service() method
When a thread blocks on i/o, what state does it enter?
How can I scroll through list of pages like the search results in google?
Which characters may be used as the second character of an identifier, but not as the first character of an identifier?
Have you used threads in Servelet?
What is metaspace?
the same information whether it will connect to the database or it will be used previous information?
Is the infobus client side only?
What is the infobus?