Multiple choice technology web technology

A static variable is associated with the class as a whole rather than with specific instances of a class.Non-static variables take on unique values with each object instance.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Static variables belong to the class itself and are shared among all instances, whereas non-static (instance) variables have unique values for each individual object instance.