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 many boolean functions are there?
What is binary tree in java?
Explain Basics of OOP Language in java
What is the impact of declaring a method as final?
Is it possible to override the main method?
What is string literal in java?
What does || || mean in math?
What is a condition in programming?
Explain the significance of class loaders in bootstrap?
Why singleton pattern is better than creating singleton class with static instance?
EDS (Electronic Data Systems India Pvt Ltd) at Chennai on 16-12-2006.
What is stack explain?
What is static variable with example?
Why deletion in linkedlist is fast than arraylist?
Explain about map interface in java?