Question: What does using = = to compare 2 reference - type variables actually compare? ( Select the one correct answer ) It does

What does using "==" to compare 2 reference-type variables actually compare? (Select the one correct
answer)
It does a byte-to-byte comparison of the two objects.
It does a comparison of the memory address of the two objects.
It can ONLY be used with native types like int, long, char, etc., NOT references.
It does a comparison using the ".equals" method defined for the objects being compared.
It does a comparison between all public data attributes of the objects being compared
None of these
 What does using "==" to compare 2 reference-type variables actually compare?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!