employer cover photo
employer logo
employer logo

Backstop Solutions

Is this your company?

Backstop Solutions interview question

What is the difference between .equals and ==?

Interview Answer

Anonymous

16 Jan 2011

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.