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 |
Is sizeof a preprocessor?
Is call by reference possible in java?
What technique is carried out to find out if a particular string is empty?
what is filters and its use?
Explain parallel processing in java8?
What are the different conditional statements?
When you Click a Button, What event will be fired?
How to declare unique ArrayList ?
Are global variables initialized to zero?
What are void pointers?
Which class contains a method: cloneable or object?
What is super in java?