+ 2
Is writing "@Override" is must?
6 odpowiedzi
+ 4
Do not confuse concepts, this annotation does not actually override, but monitors compliance with this condition. For example, you can write equals() without @Override, but if you make mistake, you will be never notificated about this
+ 2
yes
it is compulsory to override the equals method of object class to use in our class with override notation
+ 2
Yes, this is good practice. This annotation will prevent possible errors if you suddenly forget something. It is also added by all modern IDEs automatically when inheriting or implementing
+ 2
hmmmm........