Overriding Equals And Hashcode In Java - 039

 
Published on Nov. 12, 2015
Channel: Deege U
Category: Education
Source: Youtube

How can I tell if two Java instances represent the same instance? And what does class equality mean in Java? The question here is, what does it mean to be the same or different in Java. If you modeled me, maybe two of me had blue shirts and the third had a red shirt. So their shirt color attribute would be the blue for two DJ instances, and red for a third DJ instance. Are they equal because they have the same color shirt, or are they the same me? We're going to clear that up in this lesson as we learn about what it means in Java for two instances to be equal. #java #programming #tutorial ▼ Like the video? Don't forget to subscribe! ➜ http://www.deegeu.com/subscribe ▼ Keep up to date with the newsletter! ➜ http://www.deegeu.com/newsletter/ Full transcript: http://www.deegeu.com/overriding-equals-and-hashcode-in-java Concepts: Java, classes, equals, hashcode Social Links: Don't hesitate to contact me if you have any further questions. WEBSITE : dj@deegeu.com TWITTER : http://www.twitter.com/deege FACEBOOK: https://www.facebook.com/deegeu.programming.tutorials GOOGLE+ : http://google.com/+Deegeu-programming-tutorials Hosted by DJ Spiess About Me: http://www.deegeu.com/about-programming-tutorial-videos/ Related Videos: What are static factory methods in Java? - 036 https://youtu.be/sOpbAOX5nJs Free Java Course Online https://www.youtube.com/watch?v=yxwdKX7ErJ4&list=PLZlGOBonMjFVq9FF0eiS_emcFmP-0fSBe Media credits: All images are owned by DJ Spiess unless listed below: Music Cold Funk - Funkorama by Kevin MacLeod is licensed under a Creative Commons Attribution license (https://creativecommons.org/licenses/by/4.0/) Source: http://incompetech.com/music/royalty-free/index.html?isrc=USUAN1100499 Artist: http://incompetech.com/