A instance variable is a local variable a static variable a

A instance variable is a local variable a static variable a class variable None of the above

Solution

The answer to it would be d. None of the above, as, instance variable are those non-static variables that are defined inside the class, but outside any method or block, and they get initialized when any instance of the class is created.

1. A local variable is a variable declared within a particular method or block within a class, and also local variables are not automatically initialized.

2. Class and static variables are attributes of the class itself, rather than of an object. There is only one copy of these variables for all the objects of the class. While, each object of the class will have it own set of the instance variables.

So, the answer would be none of the above.

 A instance variable is a local variable a static variable a class variable None of the aboveSolutionThe answer to it would be d. None of the above, as, instanc

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site