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
Name few java.lang classes introduced with java 8 ?
What is meant by overloading?
How do you write a scanner class in java?
give an example for encapsulation?
Are variables stored in ram?
What is static data type in java?
Why is string class considered immutable?
Is java a pure object oriented language?
Can I learn java without any programming experience?
What is primitive data type in java?
Which is best ide for java?
How does a for loop work?
What type of value does sizeof return?
Which is illegal identifier in java?
What is enhanced loop in java?