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 |
Why javac is not recognized?
How the elements are organized in BorderLayout?
What is meant by interface?
what is the main class of all the classes
Static Variable can referred in non-static method?
Are the equals() and hashCode() protected methods of object class?
What is the use of hashmap in java?
What is a databasemetadata?
What do you understand by looping in java? Explain the different types of loops.
What is the difference between reader/writer and inputstream/output stream?
How to set the permissions to a file in java?
Which class represents the socket that both the client and server use to communicate with each other?