what is diff string and stringbuffer

Answer Posted / gayathri

String is immutable that once the value assigned to object
cannot be modified.Suppose if we want to perform
concatenation another string object will be prepared and
the value is going to assign for that object.in total we
are having 2 objects

StringBuffer is Mutable we can change the value of the
object even the value is assigned to the object.

Is This Answer Correct ?    29 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is deque in the java collections framework? : java collections

544


What are the different types of features of the java collections framework? : java collections

578


What are maps interfaces in the java collections? : java collections

576


What are the classes in the java collection framework? : java collections

599


Which server-side script takes the input from JavaScript, can access the database if it needs to, and processes the data.

1602






who will give req's to u?. how they send req's to u? . what design documents contains?. when bugs raised on other developer code how to report to them?.(throgh mail or ........). how to retrive 100 recods from dao layer to presentation layer.using which collection?. what is sequence diagram.?.

1821


What is iterator in the java collections framework? : java collections

542


What are the different types of classes implemented in the set interfaces? : java collections

611


What are the differences between the java collection and the java list? : java collections

618


Should we create system software ( e.g operating system ) in java ?

581


What is an algorithm in java collection framework? : java collections

584


Hi Friends , am newbie to ajax. For example just consider one account registration - A form contains 8 text fields with submit button. In this form second texbox contains "username " . On right side of text box there is a label box . On clilck action i need to determine user is available or not. Is it possible on clicking label or should i click submit button.

1593


What are the interfaces in java collections? : java collections

618


my interviewer asked me what technical specification you used how to answer that question

1935


Which sorting algorithm is used by collections.sort() in java ?

555