Question: If a method accesses a static variable, the method: a) Must be a local method b) Must be an instance method c) Must be a
If a method accesses a static variable, the method:
a) Must be a local method
b) Must be an instance method
c) Must be a static method
d) Can be either a static method or an instance method—it depends on other factors.
Step by Step Solution
There are 3 Steps involved in it
The correct answer is d Can be either a static method or an instance methodit depends on other facto... View full answer
Get step-by-step solutions from verified subject matter experts
