Pergunta de entrevista da empresa Cognizant

Difference between == and .equals() in java