Difference between String & StringBuffer

Answer Posted / tamanna reshmi

The main difference of string class and StringBuffer is
that....while STRING class creates strings
fixed_length,STRINGBUFFER creates strings of flexible length
that can be modified in terms of both length and
content.........

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you compare arrays in java?

499


How to convert string to byte array and vice versa?

582


What is an iterator java?

527


What is complexity and its types?

520


What is synchronization and why is it important in java programming?

469






Is vector thread safe in java?

554


What is the output of the below java program?

592


Can we cast any other type to boolean type with type casting?

533


What is a for loop in java?

595


What does math floor () do?

547


What is output buffer?

566


Which language is java?

538


Enlist few advantages of inheritance?

579


What is "this" keyword in java? Explain

655


How many threads does a core java have?

507