What happens if we do not override equals() and hashcode() in Hashmap

Опубликовано: 18 Октябрь 2024
на канале: Sri
3,768
like

What happens if we do not override equals() and hashcode() in Hashmap. How will the hashmap behave when we do not override them. Three scenario's are discussed in the above video.

Liked the video? Awesome! subscribe:    / @sri-lc4hh  

website:
https://javainfinite.com/java/what-ha...

Internal Working of HashMap:
   • Internal Working of HashMap in Java