Difference between String & StringBuffer
Answer Posted / tashu
1)String class is of fixed length, but stringbuffer class is
of variable length.
2)String class can't insert character or sub string in the
middle of string, but in Stringbuffer class this is possible.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Can a class be final?
What is Session reduplication and how its done?
What happens to a static var that is defined within a method of a class?
How many bytes is string in java?
What are the characteristics of Final,Finally and Finalize keywords.
what is meant by encapsulation?
How big is a 32 bit integer?
What is a Presistent Object?
What is boolean keyword in java?
What is Applet Stub Interface ?
Why method overriding is used?
what methods would you overwrite in java.lang.object class?
What are the advantages of defining packages in java?
What are static blocks and static initalizers in java ?
What is data movement?