Difference between == Operator and equals() Method in Java

Publié le: 11 novembre 2018
sur la chaîne: VK Programming Villa
4,173
59

In this tutorial we’re going to look at very important Java concept difference between == operator and .equals() method according to the SCJP/OCJP Exam point of view and learn it with an examples with different code snippets in detail.

In this tutorial, we are going to discuss about == operator which is meant for Reference comparison (Address Comparison) and it returns true only when two objects are pointing to the same object otherwise it will get false. .equals() method used for Content Comparison and it returns true when two objects contain same value.

#java #==Operator #equalsMethod #.equals() #SCJP #OCJP #Interview #Programming #Tutorials

Social Links: Don't hesitate to contact me if you have any further questions.

FACEBOOK:   / cse.programming.assignments  

GOOGLE+ : https://plus.google.com/u/0/114693282...

Quora: https://www.quora.com/profile/Vinay-K...

Related Videos:    • OCJP-SCJP Exam / Java Interview Preparation  

Gmail: vkprogrammingvilla.com


Sur cette page du site, vous pouvez voir la vidéo en ligne Difference between == Operator and equals() Method in Java durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur VK Programming Villa 11 novembre 2018, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 4,173 fois et il a aimé 59 téléspectateurs. Bon visionnage!