186k views
21 votes
Examine the following declarations:

int area;
Point pt;


Which of the following is true?

a. both are primitive variables

b. area is a primitive variable, and pt is an object reference variable.

c. both are reference variables

d. area is an object reference variable, and pt is a primitive variable.

User Robd
by
3.5k points

1 Answer

11 votes
C. Both are reference variables
User General Grey
by
3.4k points