Sollicitatievraag bij Cognizant

Q: What is the difference between == and .equals() in Java? A: I explained that == compares object references, while .equals() compares object content, especially for strings and custom objects.