hashcode() in java || The IMPACT of hashcode and equals || java object class || Part 1

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 พ.ย. 2024

ความคิดเห็น • 140

  • @lsamparkl
    @lsamparkl 4 ปีที่แล้ว +25

    Of all my years of viewing TH-cam lectures/tutorials/explanations you are by far the most concise, and carefully articulate tutor! thank you

  • @pallavishahare790
    @pallavishahare790 3 ปีที่แล้ว +1

    Very good explanation. Thanks Abhilash.

  • @RanjanSingh-qr1jo
    @RanjanSingh-qr1jo 3 ปีที่แล้ว

    I love to watch your video and clear my basic fundamental in core java.

  • @alxx736
    @alxx736 3 ปีที่แล้ว

    This channel it s in another level .We should pay one .You show how things work internally . Nobody do that. Millon thanks

  • @Pritamdas-bg7fp
    @Pritamdas-bg7fp 4 ปีที่แล้ว +1

    truly such a great explanation ...like i am in primary school and the teacher is explaining me

  • @parambharti7095
    @parambharti7095 3 ปีที่แล้ว +1

    Great !!!!!!

  • @yatendra__singh
    @yatendra__singh 3 ปีที่แล้ว +2

    Pls create more videos like this ,you are the best on TH-cam for explaining any topic ,pls upload a interview series for experience in Java

  • @prasantaroutray6053
    @prasantaroutray6053 5 ปีที่แล้ว +1

    Excellent and superb always

  • @shivanideorukhakar
    @shivanideorukhakar 4 ปีที่แล้ว

    super knowledge n best explanation.. thank you

  • @nileshmohale2743
    @nileshmohale2743 ปีที่แล้ว

    Very helpful session Thanks 🙏

  • @unagi4254
    @unagi4254 3 ปีที่แล้ว +2

    this video helped me A LOT! thank you so much for this tutorial I really appreciate your energy

  • @NITISHKUMAR-nx9mk
    @NITISHKUMAR-nx9mk 2 ปีที่แล้ว

    Very Nice Explanation!

  • @alvaroisea2259
    @alvaroisea2259 3 ปีที่แล้ว

    Thanks for teaching java this way, the information you're providing is very helpful! thanks!

  • @oumaimaabouzaid4948
    @oumaimaabouzaid4948 2 ปีที่แล้ว

    Thank you sooooo much... The explanation is very clear and thorough

  • @jatin_lanje
    @jatin_lanje 2 ปีที่แล้ว

    wow so well explained! Thank you.

  • @ravijatwa240
    @ravijatwa240 4 ปีที่แล้ว

    Very good explanation

  • @habeebshaik6207
    @habeebshaik6207 4 ปีที่แล้ว

    Excellent video thanks

  • @sukhrobibrokhimov2230
    @sukhrobibrokhimov2230 3 ปีที่แล้ว

    Thank you bro it was so good tutorial for developers who has not got solid knowledge about hashcode. Respect

  • @tirthjayswal9895
    @tirthjayswal9895 2 ปีที่แล้ว

    Very good and deep explenation

  • @AbhishekGupta-bt8ib
    @AbhishekGupta-bt8ib 3 ปีที่แล้ว +1

    Don't know why this guy has so less subscribers. Definitely he needs more subscribers

  • @vinaymishra8533
    @vinaymishra8533 2 ปีที่แล้ว

    Very good explanations

  • @chonylau6981
    @chonylau6981 3 ปีที่แล้ว

    Thank you for your crystal clear explanation.

  • @sunilyadav-xt7op
    @sunilyadav-xt7op 5 ปีที่แล้ว +1

    Nice way to make concept clear.... Thnx

  • @rahimkhan-fh9dd
    @rahimkhan-fh9dd 5 ปีที่แล้ว +1

    nicely explained pls quick upload part 2 of this video

  • @nebilgokdemir4527
    @nebilgokdemir4527 4 ปีที่แล้ว +1

    I have been watching a couple of your videos. your knowledge is seriously so deep in coding and you explain truly so basic. I truly thankful for all great knowledge that you share with us and now I am following to watch all your video.
    stay bless.

  • @MrPrabhuvin
    @MrPrabhuvin 2 ปีที่แล้ว

    Awesome explain 👍

  • @cherryartsgallery3177
    @cherryartsgallery3177 3 ปีที่แล้ว

    Very clearer explanation. Keep it up. God bless you

  • @hanisntsolo
    @hanisntsolo 4 ปีที่แล้ว

    Very well explained Thanks a lot.

  • @bloom6874
    @bloom6874 2 ปีที่แล้ว

    great explanation. You explain the concept in depth and repeat the concepts again for better understanding just like I do while teaching. Great job. keep it up.

  • @bandaruneeraj7246
    @bandaruneeraj7246 ปีที่แล้ว

    Simply Great!!!!!!!

  • @vasanth.s1658
    @vasanth.s1658 4 ปีที่แล้ว +1

    Excellent bro!!!..cheerss

  • @Balu-wx7dd
    @Balu-wx7dd 3 ปีที่แล้ว

    Good explanation

  • @stevancosovic4706
    @stevancosovic4706 3 ปีที่แล้ว

    Thank you, you would be a great teacher or programming on IT faculty, very calm, focused and straight to the point. The step by step approach is really effective here. Best wishes.

  • @pushpanjalishivanna5533
    @pushpanjalishivanna5533 5 ปีที่แล้ว +3

    Super:) More n more expectation from you:)

  • @zubayerahmedsakib3692
    @zubayerahmedsakib3692 5 ปีที่แล้ว +2

    god bless you brother for this amazing explanataion

  • @mohamedely3987
    @mohamedely3987 ปีที่แล้ว

    Well-done 🎉

  • @Dyslexic_Neuron
    @Dyslexic_Neuron 5 ปีที่แล้ว +1

    Worth every minute ......good amount of hardwork ...thanks

  • @arpanbanerjee8584
    @arpanbanerjee8584 4 ปีที่แล้ว +1

    Eagerly waiting for your 3 rd video of the series. Pls complete that. I didn t find any tutorials which gave a satifactory explanation abt the contract bw hascode and equals they are just showing some examples and telling that it is necessary. Pls post a detailed video.

  • @vijayr6540
    @vijayr6540 5 ปีที่แล้ว

    Excellent bhayya , good one Thanks a Lot

  • @codewithSuraj7
    @codewithSuraj7 6 หลายเดือนก่อน

    I just want to Say Thank You So much Bro

  • @vladanulardzic5859
    @vladanulardzic5859 4 ปีที่แล้ว +2

    Great work ! Great teaching ! You put a really great work in this lesson ! If possible make more basic practical examples with trusted libraries. Thank you.

  • @gugudukullaiswamy1815
    @gugudukullaiswamy1815 5 ปีที่แล้ว +5

    This is high level explanation ,,,, just no word's to say... This type of professionals required for achieving anything..... You are doing great work... Thank you so much abhilash.... We are expecting more concepts like this from you and help the people like us.... 🙏🙏🙏

  • @sushantsinha2976
    @sushantsinha2976 5 ปีที่แล้ว

    Superb incredible explanation bro.You clear my all doubt

  • @soundaryadash7709
    @soundaryadash7709 2 ปีที่แล้ว

    Very detailed and simple explanation, really loved your video :)

  • @mohammadikram687
    @mohammadikram687 4 ปีที่แล้ว +1

    Man o Man ur teaching method is way too good.. Ma Sha Allah nazar na lag jaye kisi ki. Hope ur channel grow fast nd it will.. Keep up the good work sir.

  • @prashanthraju7081
    @prashanthraju7081 4 ปีที่แล้ว

    nice explanation

  • @hifromspace
    @hifromspace 4 ปีที่แล้ว

    You teach really well

  • @dilipnathrani8014
    @dilipnathrani8014 5 ปีที่แล้ว +1

    Awesome explanations.... waiting for part 2.... happy coding

  • @premkirankatinedi4479
    @premkirankatinedi4479 5 ปีที่แล้ว

    WOW MAN! Simply superb...crystal clear

  • @Just_got_it123
    @Just_got_it123 5 ปีที่แล้ว

    great editing work

  • @a2zs862
    @a2zs862 5 ปีที่แล้ว +1

    Simply no words to say than saying Thank You, So Thank you so much Abhilash..Great job keep it up.

  • @rakeshkumar8908
    @rakeshkumar8908 5 ปีที่แล้ว

    Clear explanation.thnx

  • @soumitanandy5862
    @soumitanandy5862 5 ปีที่แล้ว +2

    Hey, nice lesson..!thank you..

  • @anilamane6764
    @anilamane6764 5 ปีที่แล้ว

    i think your body is filled with java awesome great keep doing such videos love your teaching sir superb

  • @TightyWhities94
    @TightyWhities94 5 ปีที่แล้ว +11

    Hey, great lesson! Can you do Serialization sometime?

  • @soumyachatterjee745
    @soumyachatterjee745 5 ปีที่แล้ว

    Very very good explanation.

  • @superflyj416
    @superflyj416 3 ปีที่แล้ว

    Good video. Thought he was talking about eunuchs for a second though.

  • @thatpanditcoder
    @thatpanditcoder 4 ปีที่แล้ว

    this is awesome bro....keep it up....your videos are quite good but you are underrated by youtube....keep up the good work...you are helping million minds like us...god bless you

  • @JavaObjectException
    @JavaObjectException 3 ปีที่แล้ว +2

    Bro, your explanation is very nice. Is it possible to share which books u are following to get this kind of knowledge?

  • @tech_excellence
    @tech_excellence 5 ปีที่แล้ว

    nice video!

  • @mohdshazalibinhamid9374
    @mohdshazalibinhamid9374 3 ปีที่แล้ว

    Together Moving Forward Team

  • @abdullahbinmazi7137
    @abdullahbinmazi7137 5 ปีที่แล้ว +1

    Bro pls make a set of video of spring aop module.. I saw your whole series of core module and that really attract me the goods of spring framework.. Pls do it for me and rest of the student

  • @davidfabian8620
    @davidfabian8620 3 ปีที่แล้ว

    I think : At 32:11 the hash code method returns same number because u created a string literal, a string object is created by using a new keyword.

  • @jvsnyc
    @jvsnyc 4 ปีที่แล้ว

    Good lecture. I was sloppy in one of my previous comments, but I realize we should write hashCode() consistently with the Capital C. Certainly in a tutorial, but really any place. We are used to the IDE fixing things for us, but it is better to remember it correctly.

  • @willietebs8399
    @willietebs8399 5 ปีที่แล้ว +1

    @Abhilash, How do I condition the hasCode to generate only 6 numbers per object created?

  • @sathya8242
    @sathya8242 8 หลายเดือนก่อน

    Thanks a ton Abhilash!!

  • @gokuldighe9160
    @gokuldighe9160 5 ปีที่แล้ว

    God bless you

  • @DeepakKumar-nr1qj
    @DeepakKumar-nr1qj 5 ปีที่แล้ว

    super

  • @mattsmith6828
    @mattsmith6828 4 ปีที่แล้ว

    To make this less confusing, the Strings "FB" and "Ea" were meticulously and purposely chosen, as virtually any other combination of two letters in either String would be different than "2236".
    That confused me until I messed around with it myself.

  • @PankajKumar-qk8oh
    @PankajKumar-qk8oh 4 ปีที่แล้ว

    Great explanation, really helpful. Please make some java real time projects videos

  • @vigneshdeven3177
    @vigneshdeven3177 4 ปีที่แล้ว

    I think all string literal point to same heap memory ,while string object points to do different object in heap memory, please let me know if it is otherwise.

  • @mcq2427
    @mcq2427 5 ปีที่แล้ว

    nicely explained bro, plz upload spring-boot videos

  • @luisv8887
    @luisv8887 3 ปีที่แล้ว

    wow, the first part was supposed to be boring? it was very interesting! great video

  • @mutramohanreddy5315
    @mutramohanreddy5315 3 ปีที่แล้ว

    Thank you👍

  • @ParamjitKaur-i9q
    @ParamjitKaur-i9q 4 หลายเดือนก่อน

    For selenium automation Engineer up to what level Java is required .

  • @ravitejainapanuri1804
    @ravitejainapanuri1804 2 ปีที่แล้ว

    Object identity ensures by equals then why hasch code is required and what is the significance of it?

  • @shemantsingh765
    @shemantsingh765 2 ปีที่แล้ว

    Dear Selenium Express, why is the need to override Hashcode as anyway we are getting hashcode from the default object class ??

  • @suhelbobade3720
    @suhelbobade3720 5 ปีที่แล้ว

    Do u have plan for selenium WebDriver ?

  • @nagarajanerode
    @nagarajanerode 3 ปีที่แล้ว

    So in this case, str.equals(str2) will be true, right.. for the values str=FB and str= Ea

  • @aastha4708
    @aastha4708 3 ปีที่แล้ว

    this means equals method is used for content comparison??

  • @tindo0038
    @tindo0038 4 ปีที่แล้ว

    thank you so much

  • @naveenvigneshwar5190
    @naveenvigneshwar5190 ปีที่แล้ว

    Thanks a ton :)

  • @nithiyaarulanantham4536
    @nithiyaarulanantham4536 5 ปีที่แล้ว +2

    Hey Abilash please upload video on comparator and comparable interface please

  • @abhinavghosh725
    @abhinavghosh725 4 ปีที่แล้ว +2

    HOW DO YOU KNOW THE HASHCODE FUNC DOES NOT RETURN THE MEMORY ADDRESS OF THE OBJECT IN HEAP!
    IS THERE A WAY OF KNOWING THE MEMORY ADDRESS OF OBJECTS IN JAVA

  • @faizulislam5096
    @faizulislam5096 5 ปีที่แล้ว

    Great explaination..Can you please make a video on executor framework.

  • @anshumansahoo5162
    @anshumansahoo5162 5 ปีที่แล้ว +1

    ✌✌

  • @sherlanaveenkumar1837
    @sherlanaveenkumar1837 5 ปีที่แล้ว +1

    Hi, what's the reason for hashcode same for FB, Ea objs, pls share it, yesterday I faced

  • @dipak002
    @dipak002 3 ปีที่แล้ว

    But, as you said, the hashcode is uniquely calculated for an object. Then given the same hashcode, the corresponding objects must be equal, isn't it? Else the implementation of hashcode is incorrect. Can you explain? Do you suggest we must always implement our hashcode for an object where hashing is needed?

  • @saileshyalakaturi366
    @saileshyalakaturi366 5 ปีที่แล้ว +1

    bro please upload spring mvc and spring boot example

  • @pragun1993
    @pragun1993 4 ปีที่แล้ว

    If the native Object class implementation of hashcode method utilizes address of the object (which is unique) in the calculation of hashcode, then how is it possible that two different objects (even though they have same contents inside them) can have same hash code? A custom implementation of hash code for Employee class which has integer id as an instance filed might utilize this id to calculate hashcode in which case, different employee objects(E1 and E2) with same id will return same hash code. But if you're relying on object's class hashcode method implementation, how will you get same hash code, when we know E1 and E2 point to two different objects.

  • @HenryLeu
    @HenryLeu 3 ปีที่แล้ว

    What if 2 objects have the same contents, but their hash codes are different? Are the 2 objects equal or different?

  • @anupamanand1550
    @anupamanand1550 ปีที่แล้ว

    can't we override the hashcode() & equals() method so every time we will get a unique number each time?

  • @jvsnyc
    @jvsnyc 4 ปีที่แล้ว

    Still watching, but halfway thru, I have mixed feelings that you are emphasizing the unique value for each object aspect, when the truly sacred absolute don't-mess-with-this requirement is that two objects which will compare .equals() true must always yield the same hashCode, never different ones. I am sure you get to this, but at halfway point one could have no idea of this yet. EDIT -- 41:30 to 41:50 makes it clear. I hope everyone watched all the way thru. It would also be good to link to Part II in the video description.

  • @zamin9438
    @zamin9438 5 ปีที่แล้ว +7

    I feel like this tutorial could be explained in 10 minutes max. Great Video, but not that concise.

  • @sankalpsaurabh1072
    @sankalpsaurabh1072 5 ปีที่แล้ว

    can you plz tell, how string internally calculates hashcode?

    • @SeleniumExpress
      @SeleniumExpress  5 ปีที่แล้ว

      Hi Sankalp,
      Please follow this link
      th-cam.com/video/wytkyBx4JIc/w-d-xo.html

  • @BlueHawkPictures17
    @BlueHawkPictures17 4 ปีที่แล้ว

    Such fantastic production quality, but goddammit why does the sound quality always have to be so bad in all these tutorials.

  • @ganeshbejawada2250
    @ganeshbejawada2250 5 ปีที่แล้ว +1

    When will i expect next video of this tutorial Abhilash

  • @sandeepkumarnayak4865
    @sandeepkumarnayak4865 4 ปีที่แล้ว

    what are the befefites of hashcode().

  • @SurendraGurjar2014
    @SurendraGurjar2014 3 ปีที่แล้ว

    Good explanation but very lengthy , could be lot shorter.

  • @sumanghosh4299
    @sumanghosh4299 5 ปีที่แล้ว

    one doubt hashcode need not be always unique right