String is a immutable objects . it means that string does
not change...........
But it will be chang.........
{
String s="kapil";
String s1="raj";
String s=s1;
then print(.......)
The String has been changed ..
how it is possible and why its called immutable objects
Post New Answer View All Answers
what are synchronized methods and synchronized statements? : Java thread
Can private members of a base class are inheritable justify?
Describe what happens when an object is created in java ?
Difference between vector and arraylist.
What are register variables what are the advantages?
What is passing by reference in java?
What is difference between static variable and global variable?
What is == in java?
What are the advantages of java over C++?
What is the static method?
What is the purpose of format function?
What is the similarity between dynamic binding and linking?
Is upper case in java?
What is the use of singleton class?
Which package is imported by default?