25.5k views
1 vote
Reference equality uses the equality operator (==) and compares the references (addresses in memory) of two objects.

a. True
b. False

User Follyroof
by
7.4k points

1 Answer

5 votes

Final answer:

Reference equality in programming compares the references or memory addresses of two objects using the equality operator (==). If two objects refer to the same memory address, they are considered reference equal.

Step-by-step explanation:

The correct answer is a. True. Reference equality in programming compares the references or memory addresses of two objects using the equality operator (==). It determines if two objects are referencing the exact same memory location or not. If two objects refer to the same memory address, they are considered reference equal.

User Joe Bergevin
by
8.5k points

No related questions found