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 is the difference between method overriding and overloading?
Are private methods final?
Can java arraylist hold different types?
Mention the default values of all the elements of an array defined as an instance variable.
Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)
What is this keyword used for?
Can a source file contain more than one class declaration?
How does enum work in java?
Difference between character constant and string constant in java ?
What is java reflection?
How do you compare objects in java?
What happens if we don’t override run method ?
What is the difference between C++ and Java and your preferences?
What is a variable simple definition?
What is nullpointerexception in java?