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...

What is static variable and static method?

Answer Posted / abanish kumar rajoot

Static Varaibles & methods both are, class level
declaration means of it ,static varaibles are those which
are common for all the objects and the advantage of static
varaible over non-static is that they allocate memory space
at complitaion time means when a class gets load in memory.
and they remains in memory till class is loaded there.
Static methods are declared with static keyword and they
can be accessed by class name and only accessed static
variables.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are assembly attributes?

1002


What's the access scope of protected access specifier?

1030


What is meant by 'Class access modifiers'?

1042


when you will synchronize a piece of your code? : Java thread

1010


Can we write class inside a class in java?

973


What is a memory leak in java?

1063


What are the super most classes for all the streams?

2538


What is the meaning of flag day?

1019


How to convert string to byte array and vice versa?

1083


What are static variables and functions?

1134


What is mean by collections in java?

1165


Does sprintf allocate memory?

1101


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?

1091


Is singleton a bad practice?

1038


Can we sort arraylist in java?

981