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
How will you get the platform dependent values like line separator, path separator, etc., ?
When can you say a graph to be a tree?
What does business logic mean?
What is local declaration?
What is the association?
Will set allow duplicates in java?
What is the significance of continue jump statement? Explain with an example.
What is numeric function?
What does java se mean?
what is session in java?
What is instance means in java?
What all access modifiers are allowed for top class ?
How many bytes is a string?
What is dot operator?
How do I start learning java?