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
Can we declare a static variable inside a method?
What is the static import?
Why is java not 100% pure oops?
What is JDBC Driver interface?How can you retrieve data from the ResultSet
What is difference between jdk,jre and jvm?
What is nested interface?
Compare overloading and overriding?
How are variables stored?
What is the reason behind using constructors and destructors?
Difference between default and protected access specifiers?
Is null an object java?
What is the difference between class & structure?
How do you format in java?
What are inbuilt functions?
What is the r character?