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
The answer to this question is C bar is a local variable In Java an instance variable and a static v... View full answer
Get step-by-step solutions from verified subject matter experts
