Great explanation, I was scratching my head from last 2 hours and your 16 min video made it clear easier than books and Udemy courses. Keep it up, man.
sir, you stop making videos ?? your video is very good for fresher as well as experienced people especially those who want to learn Dynamic programming what great content you have sir. And the very important thing which I want to thank you that you have created these videos 2 years before only when no one was giving this imp concept for free and you gave. Thank you sir
Thanks Adi for your such feedback. It really gives nice feeling to hear such feedback. Due to my workload, I was not getting much time to create videos. But now, I'm thinking to start creating videos again. All your words have provided much motivation to me to start again. Stay tuned. You'll see more videos now.
@@CodingSimplified yes sir please I am eagerly waiting for the videos please make the videos on programming sir on "collection" because it is the heart of java and no one gives much clarity on that so please make some videos on the "collection" side and their programs.
Thank you so much for the tutorial it was really well explained, although i wish you explained a little bit more the casting part " Employee emp = (Employee) obj ", but other than that great video !
God level explanation.....but after watching it I have one doubt if e1 and e2 have same content and we are overriding only equals method then it will never calls equals method bcoz their hashcode is different according to the object class hashcode method.then it will add e1 and e2 in hashset even though their content is same......plz reply
2nd doubt- I m overriding hashcode method e1 and e2 has same hashcode and i m not overriding equals then it should simply discard the e2 object bcoz their hashcode is same but it is adding in hashset........now if hashcode is same for e1 and e2 then it is calling object class equals method or not????? For content checking plz reply
Thank you for knowledge Very useful I have one dout What happens if we override only equals method not overriding hash code In case map is it will consider Both objects are equal or not Should we override both methods or is it mandatory to check for equality Please reply Thanks advance
Hash code is used to improve searching. As we explained in video, even if you've only equals, it'll work, but if you override Hashcode, it'll do 1st check & if Hashcode is equal then only check for equals. Let me know if you further doubts.
Great explanation, I was scratching my head from last 2 hours and your 16 min video made it clear easier than books and Udemy courses. Keep it up, man.
Thanks Samir for your nice feedback. Keep Watching our other videos as well.
sir, you stop making videos ?? your video is very good for fresher as well as experienced people especially those who want to learn Dynamic programming what great content you have sir. And the very important thing which I want to thank you that you have created these videos 2 years before only when no one was giving this imp concept for free and you gave.
Thank you sir
Thanks Adi for your such feedback. It really gives nice feeling to hear such feedback. Due to my workload, I was not getting much time to create videos.
But now, I'm thinking to start creating videos again. All your words have provided much motivation to me to start again. Stay tuned. You'll see more videos now.
@@CodingSimplified yes sir please I am eagerly waiting for the videos please make the videos on programming sir on "collection" because it is the heart of java and no one gives much clarity on that so please make some videos on the "collection" side and their programs.
== compares reference and .equals compares the values is what I learnt
Great video, really helped me grasp the concepts. I have question, is it a good idea to put the hashCode equality check inside of the equals method?
Either is fine. We can have another function as well for it to make it more modular.
Thank you so much for the tutorial it was really well explained, although i wish you explained a little bit more the casting part " Employee emp = (Employee) obj ", but other than that great video !
Great video. Alternatively if you are comparing JSON then DeltaJSON is a really useful set of tools for compare, merge and graft.
Thanks for your nice feedback.
Very nice explanation actually. 16 mins worth it. Thank you lot
Thanks for your nice feedback. Keep Watching.
great explanation sir Thank u so much sir
Thanks Anjali for your nice feedback.
great explanation..Simple and not at all confusing
Thanks for your nice feedback. Keep Watching.
Thank you very much dude. Your explanation is so neat and objective. Kudos on you
Glad it was helpful! Keep Watching.
thankyou you cleared all my doubts in this concept,
thanks a lot :))
Thanks for your nice feedback. Keep Watching.
Sir please upload more videos on Strings, Graphs and Dynamic Programming.
Thanks so much in advance.
Sure, will upload on these topics.
Very well explained. spot on explanation. Thank you so much for this video
Thanks for your nice feedback. Keep Watching :)
Great explanation
Very helpful Sir
Very nice explanation..thanks sir
such a wonderful explanation ..
Thanks for your nice feedback.
thanks a lot dude
it's just what I was looking for :)
Thanks for your nice feedback. Keep Watching.
God level explanation.....but after watching it I have one doubt if e1 and e2 have same content and we are overriding only equals method then it will never calls equals method bcoz their hashcode is different according to the object class hashcode method.then it will add e1 and e2 in hashset even though their content is same......plz reply
2nd doubt- I m overriding hashcode method e1 and e2 has same hashcode and i m not overriding equals then it should simply discard the e2 object bcoz their hashcode is same but it is adding in hashset........now if hashcode is same for e1 and e2 then it is calling object class equals method or not????? For content checking plz reply
Nice explanation
To the point
Exactly what I was looking for
bhai well explained ...keep it up
Thank you for knowledge
Very useful
I have one dout
What happens if we override only equals method not overriding hash code
In case map is it will consider
Both objects are equal or not
Should we override both methods or is it mandatory to check for equality
Please reply
Thanks advance
Hash code is used to improve searching. As we explained in video, even if you've only equals, it'll work, but if you override Hashcode, it'll do 1st check & if Hashcode is equal then only check for equals. Let me know if you further doubts.
Thank you.. Nicely Explained
Thanks for your nice feedback. Keep Watching.
Very good explanantion.
Thanks for your nice feedback. Keep Watching.
SUPEERR!! Thank u soo much sir!!!
Thanks for your nice feedback. Keep Watching.
Great Explanation man
Crystal clear
Thanks for your nice feedback. Keep Watching.
Very nice explanation
thanks for such a great explanation
awesome explaination
Thanks for your nice feedback. Keep Watching.
beautifully explained..thank you so much:)
Thanks for your nice feedback. Keep Watching.
Thanks :)
Thanks for your nice feedback. Keep Watching.
Broooo u saved me 🙌🙌🙌🙌🙌🙌
To override the hashcode is that the only way or do we have any other way to check the hashcode values of two objects?
Excellent Video 👌👌👏👏
Thanks for your nice feedback. Keep Watching.
Thank u so much....
Thanks for your nice feedback. Keep Watching.
Thanks dude
do you mean equals() and hashcode() exists only for set and map but not for list?
Excellent
Thanks for your nice feedback. Keep Watching.
thankyou sir
Best explanation
Thanks for your nice feedback. Keep Watching.
ty
Hey man.
❤❤❤
return this.name.length() % 10 will return 7 for both words with length 7 and 17 right?
Indian English is wonderful
Great explanation
Thanks for your nice feedback. Keep Watching.
Best explanation
Thanks for your nice feedback. Keep Watching.