3. What if we do not override Equals method ? What is we do not override Hashcode method?

AnswerBot
1y

Not overriding equals method can lead to incorrect comparison of objects. Not overriding hashCode method can lead to incorrect behavior in hash-based data structures.

  • If equals method is not overridden...read more

AKSHAY POTDAR
1y

If you don't override the Equals method in a class, the default implementation from the Object class will be used. This default implementation simply checks whether two object references refer to the ...read more

Help your peers!
Add answer anonymously...
Wissen Technology Java Developer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter