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 a sessionfactory? Is it a thread-safe object?
Difference between loadclass and class.forname?
which type of objects reference will be given to client?
Why are some of the class and element names counter-intuitive?
What is the difference between static and non-static with examples?
Explain the difference between object state and behavior?
Is the infobus client side only?
How would you reatach detached objects to a session when the same object has already been loaded into the session?
Are we allowed to change the transaction isolation property in middle of a transaction?
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?
Why a component architecture for the java platform?
How database connectivity in XML is achieved?
What are the different approaches to represent an inheritance hierarchy?
Which characters may be used as the second character of an identifier, but not as the first character of an identifier?
the same information whether it will connect to the database or it will be used previous information?