KnowledgeBoat Logo
|

Computer Applications

An instance variable …………… .

  1. needs an instance to access it
  2. does not need an instance to access it
  3. can be accessed using the class name
  4. is declared with the static keyword

Encapsulation & Inheritance in Java

1 Like

Answer

needs an instance to access it

Reason — An instance variable needs an instance (object) to access it as each instance of the class has a separate copy of the instance variable.

Answered By

1 Like


Related Questions