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 / sumit pal singh

static keyword is mainly used for memory management purpose. And static variable is used for declare the common property of object.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a method vs function?

1047


Which data type is class in java?

1021


Explain the difference between hashmap and hashtable in java?

949


What is the use of accept () method in java?

1098


What is the difference between path and classpath variables?

1056


Difference between collection, collection and collections in java?

1014


How to write custom exception in java?

1060


Explain 5 io best practices?

1034


Detail discussions on JVM, memory management and garbage collector.

986


Explain wrapper classes in java?

1001


What is nested class?

1005


How do you achieve singleton?

981


What is the point of polymorphism java?

1021


What does yield method of the thread class do?

1039


describe method overloading

1023