What is the difference between equals () and == operator?
== checks if both references points to same location or not. equals() method should be used for content comparison. equals() method evaluates the content to check the equality.
This platform provides simple easily understandable study material for BTech CS/IT and BCA students.
What is the difference between equals () and == operator?
== checks if both references points to same location or not. equals() method should be used for content comparison. equals() method evaluates the content to check the equality.
What is the difference between equals () and == operator?
== checks if both references points to same location or not. equals() method should be used for content comparison. equals() method evaluates the content to check the equality.
No comments:
Post a Comment