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

Answer Posted / kapil dalke

Thank You ramaraju....

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is java in detail?

562


What are the 6 functions?

515


What is the use of a copy constructor?

573


What do you mean Abstraction in java?

611


In java how do we copy objects?

553






Is string is a keyword in java?

549


What are the supported platforms by java programming language?

569


Is minecraft java edition free?

578


how its run?

571


What are "class access modifiers" in Java?

613


What is the purpose of file class?

547


Can a class extend 2 classes in java?

556


Why does java does not support multiple inheritance? Explain

549


Explain about anonymous inner classes ?

580


What is a loop java?

587