Question: Please answer the following question in java: 1. Why do we need to override the method public boolean equals(Object ob) in any class? 2. Is

Please answer the following question in java:

1. Why do we need to override the method public boolean equals(Object ob) in any class?

2. Is public boolean equals(Object ob) is same as public boolean equals(Circle ob)?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!