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

What are static blocks and static initalizers in java ?

1075


Difference between throw and throws?

1099


What are the differences between heap and stack memory?

1081


When should I use a singleton?

1042


What is the difference between a vector & an array list?

1162


What does string mean in java?

1100


Explain creating threads by implementing runnable class?

1164


List types of storage classes in java?

1143


what is a green thread? : Java thread

1019


What is meant by null and void?

963


How many decimal digits is 64 bit?

925


What is basic syntax?

1036


What is a private class in java?

1047


How do you compare arrays in java?

950


is there a separate stack for each thread in java? : Java thread

971