Question OOP-CLS-0029
EasyIn Java, what does == compare when used on two object references?
- A.
The objects' sizes
- B.
The objects' class names
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Classes and Objects question
In Java, what does == compare when used on two object references?
The objects' sizes
The objects' class names
Sign up free to see the answer and a step-by-step explanation.
Whether the objects have equal contents
Whether both references point to the same object