Java Programming quiz, level Intermediate, question 18
| Question: | If X and Y are objects, and you write X = Y; in your code, it means: |
| Answer 1: | Set X to refer to the same object as Y This was the CORRECT answer |
| Answer 2: | Copy the object Y, and call the copy X. |
| Answer 3: | Compare the objects X and Y, and return "true" if they are the same object |
| Answer 4: | Compare the objects X and Y, and return "true" if the two objects are identical |
This was a question from our quiz ... but we have now provided you with
the answer (above) - we prefer to provide you with information rather than to
puzzle you.
|
|