what is stringBuffer and StringBuilder?

Answer Posted / modi[achir communication]

All methods in StringBuffer class are Synchronized whereas
in StringBuilder class methods are not synchronized.
StringBuilder is faster than StringBuffer because of the
synchronized method in StringBuffer.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you create a button with rounded edges?

560


What are the call back methods in entity bean?

557


What class is the top of the awt event hierarchy?

576


What is table mutation and how do you avoid it?

1917


What is mdb and what is the special feature of that?

564






What class is used to create Server side object ?

1668


Is the ternary operator written x : y ? Z or x ? Y : z ?

637


What is an abstract method?

590


Why a component architecture for the java platform?

578


What is Stream Tokenizer?

1728


Can we sent objects using Sockets?

644


How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!

2553


What is re-entrant. Is session beans reentrant. Is entity beans reentrant?

578


What classes of exceptions may be caught by a catch clause?

553


What restrictions are placed on the location of a package statement within a source code file?

616