
what is the difference between == operator and equals()

Hi Friend,
The == operator checks if the two objects were actually the same object. This operator looks at the actually memory address whereas the equals() method is used to compare the values of the object.
Thanks
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.