What is the importance of static variable?

What is the importance of static variable?

hi,

What is the importance of static variable?

thanks

View Answers

April 12, 2013 at 10:38 AM

Hi,

The Static variable which belongs to the class and not to object(instance). Only once initialized the Static variables for at the starting of an execution. These variables will be initialized first, before the initialization of any instance variables. We can access directly the static variable by it's class name and no requirement of any object.

For more related articles then visit this link

http://www.roseindia.net/java/beginners/staticvariable.shtml

thanks,

Ads









Related Tutorials/Questions & Answers:
What is the importance of static variable?
Static & Instance variables in java
Advertisements
What are instance variables?
What is JavaScript Variables ?
What are local variables?
ModuleNotFoundError: No module named 'static_variables'
Variables
What are Big Data and its importance in industries?
What are Big Data and its importance in industries?
What is static factory pattern?
What are the restriction imposed on a static method or a static block of code?
What is the difference between a static and a non-static inner class?
static
static
static
Static
JAVA what is different between static block and public static void main(String a[]) method
What happen when we write static public void instead of public static void?
STATIC
What is Static Website
static
ModuleNotFoundError: No module named 'importance'
Variables in Java
Variables in Java
Environment variables
static methods
Static Variable
static keyword
static keyword
static functions
ModuleNotFoundError: No module named 'lofo-importance'

Ads