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 is daemon thread and which method is used to create the daemon thread? : Java thread
what is the messsage u r going to get from an objectoriented programing?
What is the main use of java?
If goto and const is reserve words than why it is not work in java?
State the main difference between c++ and java?
Can java object be locked down for exclusive use by a given thread?
How do you initialize an arraylist in java?
Can a static class implement an interface?
How do you add an element to a hashset in java?
What is byte value?
Can a class extend 2 classes in java?
What is variable in java?
Explain constructors and types of constructors in java.
What are the advantages of java over cpp?
What is the full form of jpeg?