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
If I only change the return type, does the method become overloaded?
What is java used for on a computer?
What is main difference between variable and constant?
Explain the difference between call by refrence and call by value?
Which class is used by server applications to obtain a port and listen for client requests?
Is main a function?
Can we have multiple public classes in a java source file?
What is a java predicate?
What are synchronized methods ?
What is the intersection and union methods?
What is an abstract method in java programming?
Is it possible to override private or static method in java?
Why is flag used in java?
What is finalize method?
What is a method in programming?