Overriding equals and hashCode in Java - 039

Описание к видео Overriding equals and hashCode in Java - 039

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-equa...

Concepts: Java, classes, equals, hashcode

Social Links: Don't hesitate to contact me if you have any further questions.
WEBSITE : [email protected]
TWITTER :   / deege  
FACEBOOK:   / deegeu.programming.tutorials  
GOOGLE+ : http://google.com/+Deegeu-programming...

Hosted by DJ Spiess
About Me: http://www.deegeu.com/about-programmi...

Related Videos:

What are static factory methods in Java? - 036
   • What are static factory methods in Ja...  

Free Java Course Online
   • What important Java Terms do I need t...  

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/...)
Source: http://incompetech.com/music/royalty-...
Artist: http://incompetech.com/

Комментарии

Информация по комментариям в разработке