string is immutable? right every one knows that, my
question is it advantage or disadvantage making string
immutable?
Answer Posted / chandu
Sting is Immutable.We can make String as mutable in the give ex
String s="Hello";
String s=s1;
String s2;
s2=s1.append("World");
Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
What are methods of a class?
Is main is a keyword?
When does an object becomes eligible for garbage collection in java?
What is hashset in java?
What is included in core java?
What is the common usage of serialization? What exceptions occur during serialization?
What technique can be employed to compare two strings?
What are the advantages of inner classes?
What ide should I use for java?
How many techniques can be employed to create a string object?
How can we make sure main() is the last thread to finish in java program?
worst case complexities of Quick sort and Merge sort.
What do you mean by thread safe?
How many bytes is a string java?
Can I declare a class as private?