‘equals()’ for class ‘String’ has been overridden to check if both the objects represent the same sequence of characters or not. ‘==’ simply checks if both the reference variables have the same value or not. That means, if both the object references point to the same object or not.
![]() |
No comments:
Post a Comment