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 is use of static method?

990


What are the advantages of defining packages in java?

923


What is :: operator in java 8?

953


Will the compiler creates a default constructor if I have a parameterized constructor in the class?

1043


How does arraylist size increase in java?

1043


What are the important features of Java 8 release?

1025


What is a qualifier in a sentence?

925


Is java a pure object oriented language?

911


Can we sort set in java?

906


Can I extend singleton class in java?

1038


Can we able to pass objects as an arguments in java?

964


What is method and methodology?

1050


Mention a package that is used for linked list class in java.

902


What is lambda in java?

980


What are wrapper classes in java?

1011