Why are strings immutable in Java?
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 |
What is object class in java?
What is serializable interface?
13 Answers Infosys, Probity Soft, Seed Infotech,
How do you decide when to use arraylist and linkedlist?
Is linked list a linear or non-linear data structure?
0 Answers Akamai Technologies,
What is application tier?
What is an iterator java?
Explain inner classes ?
What are the various access specifiers in java?
What restrictions are placed on method overloading in java programming?
What is sizeof in java?
What class of exceptions are generated by the java run-time system?
how you will prevent inheritance is there any other way other than inheritance?