Thales Interview Question

Which should you use and why? ".equals()" or "==" string comparison in Java?