Java OCA OCP Practice Question 1331

Question

Fill in the blanks:

The ___ determines which attributes exist in memory,

while the ___ determines which attributes are accessible by?the caller.

  • A. reference type, signature
  • B. object type, superclass
  • C. reference type, object type
  • D. object type, reference type


D.

Note

The object type relates to the attributes of the object that exist in memory,

while the reference type dictates how the object can be used by the caller.

Option D is correct.




PreviousNext

Related