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 lambda in java?
How do you use equal in java?
What are drawbacks of singleton class?
What is a conditional statement explain with example?
Explain about abstract classes in java?
What is the difference between assignment and initialization?
How do you compare values in java?
Can we have multiple classes in single file ?
How can you set the applet size?
Can we have try without catch block?
Can we sort hashmap in java?
What is the difference between method and means?
What is the type of lambda expression?
What is the difference between a window and a frame in java programming?
Difference between nested and inner classes ?