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 |
How to change the priority of thread or how to set priority of thread?
What are the main differences between notify and notifyAll in Java?
What is an image buffer?
Explain the purpose of garbage collection in Java?
Tell me about different OOPS concepts.
Explain how hashmap works?
without using arthematic operation ,how can you write the logic for adding/substraction/multiplication?
7 Answers Tanla Solutions, Wipro,
Can a class be declared as protected?
If you are reviewing the code of your team members, what points will you look at, assuming the performance of the application is not so great
What is mean by encoding?
How many JVMs can run on a single machine and what is the Just-In-Time(JIT) compiler?
What is the major drawback of internal iteration over external iteration?