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

How do you trim a space in java?

923


How do you create a bulleted list?

1195


What is a top level class in java?

961


Is java a super set of javascript?

1040


Why do we use return statement?

966


What is a nested list?

914


Does .length start 0 java?

955


What is the char data type?

939


What does jre stand for?

1000


What is local declaration?

898


What are facelets templates?

979


What is the primitive type short?

969


What is public/private protected in java?

991


how can i use a nonsynchronized hashtable?

2525


Can variables be used in java without initialization?

1019