Java "equals & hashCode" Contract | Design Principles

Опубликовано: 22 Октябрь 2024
на канале: #TechieMit
132
5

Java's "equals & hashcode" Contract![design]

What is the general contract of hashCode?
What is equals contract in Java?
What is the difference between == and equals and hashCode in Java?
Why do we override hashCode and equals?
Can two objects have the same hashCode?

______________________
For More Videos- https://www.youtube.com/c/TechieMit?s...
______________________
If You Enjoyed The Video, Here’s More For You,
   • HashMap internal working | Java Desig...  
______________________
Insta Handle-   / amitchavanraosaheb  
Facebook-   / jalwaamitka  
LinkedIn:  / amitchavan88  
GitHub Code:https://shorturl.at/xMQU0
GitHub PPT Link:https://shorturl.at/hCTY7
______________________
Chapters:
0:00 Introduction to video
0:37 Information PPT on equals() and hashcode() Contract
2:41 Actual example of class denoting POJO class
3:24 Main class creation and demo of example
6:13 Overriding of equals() method
10:44 Overriding of hashCode() method
14:05 Conclusion of video
______________________
About :
Java Tutorials Starting with basics and core concepts covered in detail.
How to gain mastery with strong foundation knowledge and diversify into a deeper depth of the language with a solid ground foundation
Stageswise starting from core to advanced level inculcation of topics is necessary.
Ongoing market changes remain constant but basics and core concepts should be good and eager to learn should one possess
-----------------------------------
#TechieMit #LearnFromTechie #javatutorial #LearnfromScratch #java #design
-----------------------------------------------------------