Machine-translated by Google. Questions are authored in English.
Top

Discussion

Literals do not have identifiers, and, therefore, cannot be individually referenced like objects.

  • A.True
  • B.False

Answer: A

Correct answer: True

This is the essential distinction between a literal and an object. An object has an identifier which persists independently of its values, so two objects with identical attribute values remain distinct and either can be referenced. A literal is simply a value: it has no identity, so it can only be embedded within an object rather than pointed at.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.