Difference between String & StringBuffer
Answer Posted / ramesh raju
String s1="prabas";
String s2="raju";
String s3=s1.concat(s1);//s1=s2.concat("xyz") its not work
We didn't chang the content of s1,s2 strings
that's y String is Immutable
where as StringBuffer is mutable we can easly modified the
content
| Is This Answer Correct ? | 26 Yes | 43 No |
Post New Answer View All Answers
Is main a function?
What are 4 pillers of object orinted programming?
Garbage collection in java?
Is java pass by value or pass by reference?
When is the finalize() called? What is the purpose of finalization?
How is a variable stored in memory?
What is the use of a conditional inclusion statement in Java ?
What is the difference between path and classpath variables?
How to change the priority of thread or how to set priority of thread?
What exactly is java?
Is hashmap thread safe?
Can two objects have same hashcode?
What are the basic interfaces of java collections framework?
Define immutable object?
What language is an assembler written in?