Can one object be assigned to another? Justify
Answers
Answered by
1
Explanation:
Assigning one object to another just assigns the object reference (a pointer more or less). It does NOT copy member variables etc. In Java, objects are manipulated through reference variables, and there is no operator for copying an object—the assignment operator duplicates the reference, not the object..
hope u understand
Similar questions
Math,
2 months ago
Social Sciences,
2 months ago
Math,
2 months ago
Social Sciences,
4 months ago
Math,
10 months ago
Chemistry,
10 months ago
Math,
10 months ago