Java Expert Interview Questions | Glassdoor

Java Expert Interview Questions

1

Java expert interview questions shared by candidates

Top Interview Questions

Sort: Relevance Popular Date

What is the difference between .equals and ==?

1 Answer

In the case of objects, == looks at memory address, and .equals looks at the .equals method on the object (which should look at the content). For primitives, == will look at the content.

11 of 1 Interview Question