What is a Static Variable?

A static variable, also referred to as a class variable, is a variable which exists across instances of a class.

The opposite of a static variable is an instance variable, which is a variable related to a single instance of a class. Each time an instance of a class is created, the system creates one copy of the instance variables related to that class.

By default, all variables are created as instance variables. To make a class variable, you must explicitly declare the variable static.



Top 5 Free Networking Tools

Bookmark What is a Static Variable?

Latest Blog Posts


English English GermanGerman SpanishSpanish FrenchFrench ItalianItalian PortuguesePortuguese RussianRussian DutchDutch
GreekGreek HindiHindi JapaneseJapanese KoreanKorean ChineseChinese Chinese (Simplified)Chinese (Simplified) ArabicArabic

Copyright 2009 Tech-FAQ. All rights reserved. Privacy Policy.