When comparing two object references what is the difference between using the equality operator (==) and the equals method? In other words, describe how the functionality of these two approaches differs.
a) The == operator compares the memory addresses of the objects, while the equals method compares their contents.
b) The == operator compares the contents of the objects, while the equals method compares their memory addresses.
c) The == operator returns true if the objects have the same memory address, while the equals method returns true if the objects have different memory addresses.
d) The == operator returns true if the objects have different memory addresses, while the equals method returns true if the objects have the same memory address.

Q&A Education