1.

Which among the following is true?(a) Object referencing refers to methods address(b) Object referencing refers to variable of object(c) Object referencing points to same address, if assigned by variables(d) Object referencing is used to point methodsThe question was asked in an interview for internship.I'm obligated to ask this question of Object Reference in portion Object of Object Oriented Programming

Answer»

Correct choice is (c) Object REFERENCING points to same address, if assigned by variables

Explanation: The object referencing will POINT to the same address if variables are assigned. All the variables might have a DIFFERENT name but they will point to the same memory location. This is most basic concept of references.



Discussion

No Comment Found

Related InterviewSolutions