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

Published: 11 November 2018
on channel: 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


On this page of the site you can watch the video online Difference between == Operator and equals() Method in Java with a duration of hours minute second in good quality, which was uploaded by the user VK Programming Villa 11 November 2018, share the link with friends and acquaintances, this video has already been watched 4,173 times on youtube and it was liked by 59 viewers. Enjoy your viewing!