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

Explain about features of local inner class?

1134


What is the abstract class?

1030


What are encapsulation, inheritance and polymorphism?

1016


Why is java not 100% pure oops?

1173


how does the run() method in runnable work? : Java thread

927


What is the current version of java?

1042


What are the different ways of implementing thread? Which one is more advantageous?

987


What is difference between an object and a class?

1126


Explain about object oriented programming and its features?

1015


What is boolean in java?

982


What is the independent variable in an experiment?

961


What is a literal coding?

1026


What is a subsequence of a string?

1068


What is the purpose of the main method?

993


What is a java lambda expression?

1051