Cognizant interview question

Difference between == and .equals() in java