Skip to main content

Static Variables

Learn Static Variables (Object Memory, Java) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

6. Basic Concepts What Does static Mean? Normally, every object gets its own copy of a class's fields. But mark a field static and something different happens: instead of belonging to each object, it belongs to the class itself . There is only ONE copy of it, no matter how many objects you create.

More lessons in Object Memory