equals() in java || Create your custom equals method || The IMPACT of equals and hashcode || Part 2



5
22155

equals method in java /// In this video we will be only concentrating on the equals() method and we will learn the importance of overriding an equals(). So Below are the topics that we will be covering in this tutorial : 1) What is a == operator? 2)What is object class equals() method does? 3)What is the String class equals method does? 4)Why do we need to override the equals method to our own class? 5) Creating a custom equals method from the scratch(with java debugging) Note that Java's equals method plays a very important role in collection framework and especially in a hash-based collection like HashSet/ hashmap/hashtable etc. So having a good understanding of the hashcode method and equals method will make us a better programmer today. Once we understand the equals(), we will understand the problem without hashcode and equals in the next video. So if you are a beginner and you are a java learner then this tutorial for you and you learn everything steps by step. For more videos, consider subscribing by clicking the link below. https://www.youtube.com/channel/UCpUYkSDJpHug-vfC5S-NXRA?sub_confirmation=1 Stay tuned and like my Facebook page for more. https://www.facebook.com/seleniumexpress/ Music : ----------- credits : - (intro) Adventures by A Himitsu https://soundcloud.com/a-himitsu Creative Commons — Attribution 3.0 Unported— CC BY 3.0 http://creativecommons.org/licenses/b... Music released by Argofox https://youtu.be/8BXNwnxaVQE Music provided by Audio Library https://youtu.be/MkNeIUgNPQ8 intro template : www.youtube.com/Alexbau01

Published by: Selenium Express Published at: 5 years ago Category: آموزشی