Question: The class Object defines an equal() method to compare objects. Specify advantages and disadvantages of using this method and suggest an alternative for equality.
The class Object defines an equal() method to compare objects. Specify advantages and disadvantages of using this method and suggest an alternative for equality.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
