Question: Suppose foo is a reference to an instance of a class Foo. Which of the following is not possible about the variable reference foo.bar? A.

Suppose foo is a reference to an instance of a class Foo. Which of the following is not possible about the variable reference foo.bar? 

A. bar is an instance variable.

B. bar is a static variable.

C. bar is a local variable.

D. It can be used to read from bar.

E. It can be used to write to bar.

F. All of the above are possible.

Step by Step Solution

3.49 Rating (159 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The answer to this question is C bar is a local variable In Java an instance variable and a static v... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Oracle Questions!