If the operation y = x; is performed, then the result of (x = = y) is

If the operation y = x; is performed, then the result of (x = = y) is

a)       true
b)       false
c)       x being set to the value null while y retains the value "Hello"
d)       y being set to the value null while x retains the value "Hello"
e)       x being set to y, which it is already since y = x; was already performed
Answer:  a.

Explanation:  When y = x; was performed, the two variables are now aliases, that is, they reference the same thing in memory.  So, (x = = y) is now true.


Enhancing Classes

Learn More Multiple Choice Question :