All Questions
1 question
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2votes
1answer
2kviews
If I am using just HashMap can I override only hashCode method?
If I need to use only HashMap, why do I need to override equals() method along with hashCode()? How will not implementing equals() affect the working of HashMap?
- The Overflow Blog
- Featured on Meta
Related Tags
collections × 1
Hot Network Questions
- Wrap each base class in a template class
- Are FPV drones responsible for 75% of casualties on Russian side in Russia-Ukraine war?
- How to achieve the Steel Division 2 frontline? (Dividing area smoothly with curves using a few points)
- How are leading spaces handled in sort -k?
- Collision probability of reduced density matrix of a Haar random state
- Physics equations with universal meaning possible?
- Is Backpropagation faulty?
- The term "finitely generated algebra"
- Why would the forthcoming papal election still be valid if more than 120 Cardinals vote in it, against Universi Dominici Gregis paragraph 33?
- Can a darkmantle willingly detach?
- Can we have direct or indirect speech after the verb "lie"?
- What is the fastest playable race?
- Protecting Secrets in Lost F/A-18 Super Hornet
- Are the 144000 virgins who accompany the lamb wherever he goes Christians?
- What is the difference between a minority government and a coalition government?
- How does the aboleth's probing telepathy work?
- Inference based on Sample and population
- What is the drawback of always generating passphrases for the user?
- Annotating intentional infinite loop to satisfy "-fanalyzer"
- Mechanism of cyclopropane ring formation from malonate ester
- Does Logan age four years (or more), or do they adjust his life clock?
- Boids by Simon Woods: can we re-invent further efficient flocking models to forge complexity from simple rules?
- OTA took our money but won't give confirmation for my flight until 24 hrs before
- Children and aliens grow up together