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 is factor r?
Tell me the latest versions in java related areas?
How many digits is int32?
What are data structures in java?
What is jee6?
How to create an immutable class?
What is the difference between method overriding and overloading?
What is object cloning in Java?
What if static is removed from main method?
What is double in java?
Is it possible to compare various strings with the help of == operator? What are the risks involved?
Why pass by reference is not possible in java?
What best practices should you follow while writing multithreaded code in java?
What is arraylist class in java?
What are the default and parameterized constructors?