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 diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
What are the different algorithms used for clustering?
we use MainFrame and using os390 for operating system with DB2 data base in IRAN and interest programing with java and use webspere for world wide,please help me where i should start?
Can I map more than one table in a cmp?
how i secure my site with the https protocol.what are the steps?
What is re-entrant. Is session beans reentrant. Is entity beans reentrant?
What is threadfactory?
Where we can write Rmi registry in the code, without having to write it at the command prompt?
What is the relationship between the canvas class and the graphics class?
Explain about local interfaces.
How would you reatach detached objects to a session when the same object has already been loaded into the session?
Name three component subclasses that support painting?
What are the types of scaling?
How messaging services are done, before release of JMS?
Which class is the immediate superclass of the menucomponent class?