What is the difference between '==' and '.equals()' in Java?
'==' checks if two objects are the same object in memory, while '.equals()' checks if two objects are logically equal in terms of their content.
Great job! You've explained the difference clearly.
Can you now explain how you would implement the '.equals()' method in a custom class to compare two objects based on their state?