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
Is double bigger than float?
a thread is runnable, how does that work? : Java thread
Java is Pass by Value or Pass by Reference?
How is a variable stored in memory?
What is class forname?
Can you override private or static method in java?
When will you define a method as static?
Can we increase array size dynamically in java?
Explain about interrupt() method of thread class ?
Where pragma is used?
What is the difference between the paint() and repaint() methods in java programming?
What is difference between jdk,jre and jvm?
Which category the java thread do fall in?
How many bytes is double?
How many bits is a string in java?