Question: what is the instance variable in java?
Answer: In object-oriented programming with classes, an instance variable is a variable defined in a class (i.e. a member variable), for which each instantiated object of the class has a separate copy, or instance. An instance variable is similar to a class variable. ... Variables are properties an object knows about itself.