Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / gohil

Anil Kumar Khichar is wrong there is no issue in assigning
s1 to s.

In case if you do so. Only a referenced is copied to s.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to make a non daemon thread as daemon?

1048


What is the difference between serializable and externalizable interface?

1081


What type of variable is gender?

982


Where is const variable stored?

925


What is the use of bufferedreader?

985


Explain list interface?

948


What is ascii format?

973


What is an interoperable application in java ?

983


What are multiple inheritances?

1095


Is set ordered in java?

966


Where is jre installed?

1014


Is a boolean variable?

991


What is jvm? How its run?

1069


What do negative exponents mean?

1026


Explain polymorphism citing an example.

1026