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

Can long be null in java?

1028


Why singleton class is used in java?

1144


What are the 8 primitive data types in java?

1034


What differences exist between iterator and listiterator?

1050


How many bytes is 255 characters?

988


Why is it called a string?

1019


What is a qms manual?

1005


What is the parse method in java?

1128


What is bufferedwriter?

980


What are different access specifiers in java? Explain

1134


Is treeset sorted in java?

995


When throw keyword is used?

1078


What is the major advantage of external iteration over internal iteration?

1112


Variable of the boolean type is automatically initialized as?

1017


When should I use a singleton?

1054