Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


Difference between the String and StringBuffer classes?

Answers were Sorted based on User's Feedback



Difference between the String and StringBuffer classes?..

Answer / anitha

yes, String is a immutable that means once the string
object is created it cannot be changed.

String Buffer: it is a mutable,this object is changed if we
make any modifications.

Is This Answer Correct ?    8 Yes 0 No

Difference between the String and StringBuffer classes?..

Answer / sathya

String class is immutable i.e oncle created the value
cannot chage.

Stringbuffer class is mutable.The value can change.

Is This Answer Correct ?    5 Yes 0 No

Difference between the String and StringBuffer classes?..

Answer / latha

String is immutable and StringBuffer is mutable as most of
we know. In performance, StringBuffer is faster than the
String while performing simple concatenations.

Is This Answer Correct ?    5 Yes 0 No

Post New Answer



More Core Java Interview Questions

can write code for serialization ?

1 Answers   HCL, MegaSoft,


What is string buffer?

0 Answers  


What is an interface in java?

0 Answers  


How do you break a loop?

0 Answers  


What is meant by nested loop?

0 Answers  






What is Vector?Can you elaborate how Vector is Thread safe?

3 Answers   HCL,


What are "methods" and "fields"?

0 Answers   Wipro,


What is main in java?

0 Answers  


What is the immediate parent class of the Applet class?

1 Answers  


Howmany address lines are required to addressing 1 MB memory?

8 Answers   Beatroot Technologies, CSC, HCL, Hexaware, IBM,


Hi Friends, can you explain instance in java. In general instance means "occurence of something" . In java what is instance.

4 Answers  


How can you read content from file in java?

0 Answers   HCL,






Categories