Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 can you add and remove nodes in jtree?

972


Can a final variable be manipulated in java?

932


What is off heap memory?

936


How many types of exception can occur in a java program?

925


What is called module?

923


What is a double vs float?

944


What is the difference between JDBC 1.0 and JDBC 2.0?

3124


Write a program to print count of empty strings in java 8?

937


Why does my function print none?

893


What happens if a constructor is declared private?

969


Is singleton class thread safe?

951


Explain what access modifiers can be used for methods?

1030


What does escaping a character mean?

943


What is floor math?

915


Why char array is favored over string for the storage of passwords?

998