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 is the difference between the font and fontmetrics classes?
Why are component architectures useful?
What is meant by method chaining?
What is the form of storage space in java?
In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?
What is clustering? What are the different algorithms used for clustering?
Where we can write Rmi registry in the code, without having to write it at the command prompt?
What restrictions are placed on the values of each case of a switch statement?
What is a class loader? What are the different class loaders used by jvm?
What is the infobus?
Why won’t the jvm terminate when I close all the application windows?
How can I scroll through list of pages like the search results in google?
What restrictions are placed on the location of a package statement within a source code file?
How would you reatach detached objects to a session when the same object has already been loaded into the session?
What are the different types of exception?