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...

why String class is immutable.

Answer Posted / vikrant

Once a string object is created no changes can be made to
it. If a string is modified in code a new object will be
created. That is why string is immutable

Is This Answer Correct ?    24 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is java hard to learn?

868


What is method overloading and method overriding?

1011


What is one third plus one third as a fraction?

879


What is the java project architecture?

2195


Can we have try without catch block?

1036


Can we sort array in java?

897


What are the rules for variable declaration?

914


What is the size of string?

1022


Why main method is called first in java?

954


Why is the type for real numbers called double?

917


What is the difference between preemptive scheduling and time slicing?

1009


What are the main uses of the super keyword?

927


How do you achieve polymorphism in java?

948


What is default size of arraylist in java?

1076


What is close method? How it's different from Finalize & Dispose?

1009