Why Static variable required in java?For ex,class A
{
static int a;
int b;
}
Why static is required?

Answer Posted / soumya

what is the advantage to declare a var as static instead of instance var..can you please tell me in brief?

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How we can make copy of a java object?

852


What is null statement?

742


What do you mean by boolean?

797


What are the main differences between the java platform and other platforms?

735


Differences between traditional programming language and object oriented programming language?

798


How do you do exponents in java?

749


How to change the priority of thread or how to set the priority of thread?

816


what is predefined function in java?

732


What is the difference between hashset and treeset in java?

735


What is class array in java?

699


What means public static?

760


How do you check if a string contains only numeric digits?

849


What is an inner class in java?

705


Name the components that are termed to be Heavy-weight component but available in Light-weight components?

2174


What is volatile data type?

718