what is difference between .. and equal() in java ?
what is difference between .. and equal() in java ?
|
Both == and .equals() refers to the same object if you don't override .equals().
Its your wish what you want to do once you override .equals(). You can compare the invoking object's state with the passed in object's state or you can just call super.equals() |
All times are GMT -7. The time now is 11:45 PM. |
Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.