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
What do you mean by aggregation?
What is == in java?
What does singleton mean in java?
Mention the default values of all the elements of an array defined as an instance variable.
Do you need to import math in java?
What is use of static in java?
Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me
Is alive in java?
In Java list the methods that can be overridden?
Can list be final in java?
When to use runnable interface vs thread class in java?
Is double bigger than float?
What is java in simple terms?
What does method mean?
Is Java a dying language?