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 / digant mehta

tatic variables are classes variables not instance
variables .They are instantianted only once for a
class.They are initialised at class load time.
Static method can be referenced with the name of the name
of the particular object of that class. That's how the
library methods like System.out.println works.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between abstract classes and interfaces in java?

1182


Explain the purpose of garbage collection in Java?

1031


How does hashset works in java?

1090


Which is faster set or list in java?

1033


What are local variables?

1053


Does hashset allow duplicates in java?

1116


What is a protected method?

1142


What does || mean in vectors?

931


Why do we need data structure in java?

1071


Is java a utf 8 string?

973


How many types of operators are there?

986


What does it mean that a class or member is final?

997


Explain the private field modifier?

1097


Can we declare a class as static?

1097


What is lazy programming?

1039