Answer Posted / suraj kumar
1. When equals() method is invoked on java objects to check
their equality, then the hash code of objects are checked. The
two objects having same hash code are equal.
2. The objects having distinct hash code in HashTable
increases the performance of HashTable. Hence, the objects
should be checked its distinct hash code before storing into
HashTable.
Is This Answer Correct ? | 16 Yes | 2 No |
Post New Answer View All Answers
What is treeset in java collection?
Can you explain inner class.
How many bytes is a url?
Can this keyword be used to refer static members?
What is your platform’s default character encoding?
What is <> used for in java?
How to convert string to byte array and vice versa?
What is an image buffer?
Difference between arraylist and vector.
What is passed by reference and pass by value ?
Explain a situation where finally block will not be executed?
What language is an assembler written in?
explain autoboxing in java?
What is a null class?
Describe what a thread-local variable is in java?