filmov
tv
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
▼
▼
Full transcript:
Concepts: Java, classes, equals, hashcode
Social Links: Don't hesitate to contact me if you have any further questions.
Hosted by DJ Spiess
Related Videos:
What are static factory methods in Java? - 036
Free Java Course Online
Media credits: All images are owned by DJ Spiess unless listed below:
Music
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
▼
▼
Full transcript:
Concepts: Java, classes, equals, hashcode
Social Links: Don't hesitate to contact me if you have any further questions.
Hosted by DJ Spiess
Related Videos:
What are static factory methods in Java? - 036
Free Java Course Online
Media credits: All images are owned by DJ Spiess unless listed below:
Music
Overriding equals and hashCode in Java - 039
#58 Object Class equals toString hashcode in Java
Equals and Hashcode Contract in Java [Important Java Interview Question] | Code Decode
02. Equals and HashCode Contract & Different Variations
What happens if we do not override equals() and hashcode() in Hashmap
Why we should override equals and hashCode methods in our class | Pradeep Nailwal
What Happens When you Override HashCode Or Equals alone Video-47
Java Challenges #27 - equals, hashcode, method override
OVERRIDING EQUALS METHOD
.equals() vs. == in Java - The Real Difference
what will happen if don't override the equals method | java interview question
Ultimate Guide to Implementing Equals & HashCode with Hibernate & JPA
Java - Compare the Objects using equals() & hashCode()
The equals hashCode Contract - Java Programming
Overriding the Object equals Method - Java Override Example - Comparing Objects - APPFICIAL
29. How to override equals and hashCode method in java
Overriding the equals Method
18. What is equals() & hashCode() & why to override equals() & hashCode() | Kotlin Compl...
Die equals() und hashCode() Methode | Java Tutorial für Fortgeschrittene
What about equals() and hashCode()? - Cracking the Java Coding Interview
Why is it important to override the hashCode and equals method of Object class in Java?
Why You Need to Override the equals and hashCode Methods in Java
Java Tricky Program 19 - equals and hashCode method overriding
why we need to override equals and hashcode in java
Комментарии