Pregunta de entrevista de Tata Consultancy Services

What is the difference between .equals() and == in Java?