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 / vaishnavi

To answer Soumya's question, instance variables are declared at class level, but the instance variables still belong to an instance/object. But static variables belong to a class.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can subclass overriding method declare an exception if parent class method doesn't throw an exception?

998


What is a class object?

916


Why is stringbuffer thread safe?

1003


How finally used under exception handling?

895


Does chrome use java?

908


What is the difference between static method and instance method in Java?

1127


define the terminology association.

1048


How does singleton class work?

927


Is ruby built on java?

896


Can you override a final method?

981


What is the syntax and characteristics of a lambda expression?

979


What are the 4 versions of java?

1101


What is the difference between math floor and math round?

974


What is the final keyword in java?

1347


What is the original name of java?

1007