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,









Related Tutorials/Questions & Answers:
What is the importance of static variable?
Static & Instance variables in java
Advertisements
What are instance variables?
ModuleNotFoundError: No module named 'static_variables'
What are local variables?
What is JavaScript Variables ?
Static final variables - Java Beginners
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?
what is static synchronizes - Java Interview Questions
What happens to the static fields of a class during serialization?
PHP Variables Static
What is the difference between static and dynamic SQL?
static
static
static
Static
Importance of XML
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
JavaScript Variables
What is Static Website
static
ModuleNotFoundError: No module named 'importance'
static methods
getting variables
transient variables in java
Variables in Java
PHP Static Variable and Methods
Static Variable
Variables in Java
ModuleNotFoundError: No module named 'lofo-importance'
Environment variables
static keyword
static keyword
static functions
Importance Of Java
interface variables - Java Beginners
Inbound Links: Importance of inbound links
Jsp Scope Variables - JSP-Interview Questions
PHP Late Static Binding
Java - Declaring variables in for loops
instance variables - Java Beginners
static in java
ModuleNotFoundError: No module named 'keras-importance-sampling'

Ads