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
7.9k points

1 Answer

11 votes
C. Both are reference variables
User General Grey
by
7.7k points
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.