Discussion
Literals do not have identifiers, and, therefore, cannot be individually referenced like objects.
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.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development