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?



Why are strings immutable in Java?..

Answer / 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

More Core Java Interview Questions

What releases of Java technology are currently available? What do they contain?

1 Answers  


How do you check if a string is lexicographically in java?

0 Answers  


What are the major advantages of internal iteration over external iteration?

0 Answers  


Is final static java?

0 Answers  


What is the GregorianCalendar class?

2 Answers   HCL,


Without creating a new object, How you can retrieve a String or other object?

1 Answers  


Can we sort a map in java?

0 Answers  


How do you sort in ascending order in java?

0 Answers  


What is inner class?what is the use of inner class?where we create the object for inner class? and inner class can extend any class or inner class can implement any interface?

1 Answers   Wipro,


What are three ways in which a thread can enter the waiting state in java programming?

0 Answers  


How to perform selection sort in java?

0 Answers  


What is difference between next () and nextline () in java?

0 Answers  


Categories