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
When a thread blocks on i/o, what state does it enter?
Are there books about seam?
What is the difference between the string and stringbuffer classes?
How are the elements of a cardlayout organized?
What is the purpose of the notifyall() method?
What is TL and its use?
What is the relationship between an event-listener interface and an event-adapter class?
What is the RMI and Socket?
Do you think that java should have had pointers?
how i secure my site with the https protocol.what are the steps?
Explain what is orm?
What value does read() return when it has reached the end of a file?
How task's priority is used in scheduling?
Can you control when passivation occurs?
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?