Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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 do you mean by constant time complexity?

0 Answers   Amazon,


Can applet in different page/s communicate with each other?

1 Answers  


Explain about field hiding in java?

0 Answers  


What do bitwise operators do?

0 Answers  


What is thread pool? How can we create thread pool in java?

0 Answers  






What one should take care of, while serializing the object?

0 Answers  


Java run-time system generates What class of exceptions?

2 Answers   TCS,


How to provide security in java

0 Answers   Infosys, TCS, Tech Mahindra,


List the three steps for creating an object for a class?

0 Answers  


What is a parent class in java?

0 Answers  


What is jvm? How its run?

0 Answers  


What is the catch or declare rule for method declarations?

1 Answers  






Categories