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 are strings immutable in Java?

Answer Posted / hrindows@gmail.com

Strings in java are frequently used for hashmap keys. Now if someone changes the value of the string it will cause severe discrepancies. Hence strings are made immutable.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If I only change the return type, does the method become overloaded?

980


What is java used for on a computer?

1033


What is main difference between variable and constant?

1076


Explain the difference between call by refrence and call by value?

1070


Which class is used by server applications to obtain a port and listen for client requests?

1015


Is main a function?

1115


Can we have multiple public classes in a java source file?

1265


What is a java predicate?

1014


What are synchronized methods ?

1154


What is the intersection and union methods?

1074


What is an abstract method in java programming?

1099


Is it possible to override private or static method in java?

1037


Why is flag used in java?

1131


What is finalize method?

1191


What is a method in programming?

1224