American Express interview question

General Java Questions How do you compare two objects?