Java interview question on hashcode() and equals() || Java collection interview questions on HASHMAP

preview_player
Показать описание
This tutorial covers a very popular java interview question on hashcode and equals method in java.By asking this question interviewer checks
your understanding of java collections and wrapper class together.

So this tutorial covers few questions like :

1) how to stop duplicate entry to a hashmap with respect to a customized class
2) How the duplicate entry is getting rejected in a map with respect to a wrapper class.
3) Comparison between a customized class and a wrapper class map size.

So as we know the two most important java object class methods are hashcode and equals and they have a various impact when it comes to java collection.

Soon I am going to release another tutorial on java hashcode and equals method, where we are going to learn everything from scratch.To get a notification for that tutorial please subscribe to my channel by clicking the below link.

Stay tuned and like my Facebook page for more.

Music :
-----------
credits : -
1)
Creative Commons — Attribution 3.0 Unported— CC BY 3.0

2)
NCM Epic Music Ender Guney

-----

intro template :
Рекомендации по теме
Комментарии
Автор

For step by step explanation on hashcode and equals() in Java, please check out my new playlist by clicking the link below

SeleniumExpress
Автор

this helped me out with my issue today, thank you ver much

sanketh
Автор

I like the way you started the problem and slowly decoding...

vimalsubha
Автор

Explained very nicely.. The way of started, the way of required info from api document, different type objects.. 👏

sreenivasl
Автор

That's Amazing I'am not aware about Wrapper class that it having equal and hashcode.

niteshpandey
Автор

I have become fan of you.... thanks for the informative vedio....and for the people it's not the fake accent ... it's his confidence that he gained due to knowledge....so please don't discourage any knowledgeable person like this...

diavijaykhush
Автор

Your way of explain is understandable it is helpful

aakashdetwal
Автор

The way you are explaining the concept with example is awesome and it clear to understand

muralimohan
Автор

You are a real coder, otherwise most of the people talks about theory.

Keep up the good work !!

manojdehran
Автор

it, s Really Helpful me this a lot Sir.

swapnilshinde
Автор

I am watching on Sep 2021. Great job bro. ❤️❤️

AllinOne-eton
Автор

Perfect explanation that I want. Now I am clear with my doubts in hastable. Thanks and please create more video on programming.

prashantthite
Автор

Because map uses hash to target keys! brilliant example thanks

lordgreat
Автор

Master level explanation, really hats off
Actually I watched several videos to understand this concept. But this one is 🔥 simply

madhavanananthan
Автор

Really very helpful content with proper explaination

PoonamSharma-gyky
Автор

Thank you so much for your great explanations! so all i need to do is to go to Id=>source=>generate hashcode( )and equal(), so i cn get the map.size(1), right?

chloeren
Автор

Excellent teaching. May I know where I can find all your Java interview QA videos, Selenium interview QA, Java tutorial and Selenium tutorial at one place? Could you please share. I am learning a lot from your videos.

subhashininallapati
Автор

best example, basic point explained, but still should have talked more about equals and hashcode methods

kumarvijayag
Автор

Good explanation. Addition to that I wanna add one more point, if u add your custom object as key of map then it should be immutable. So u have to make your employee object as immutable object as string class.

sangeethchitravel
Автор

Now I actually got the point.. Thanks brother 👍

danceayush