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

static 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 ?    268 Yes 54 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we create a synchronized collection from given collection?

1078


Explain implementation and how is it different from conversion?

1074


What does singleton mean in java?

995


What is an arraylist in java?

1070


What is entry in java?

1030


How to make object serializable in java?

974


What is classes in java?

937


How to sort numbers in java without array?

977


What is the difference between member variables initialization and assignment in a constructor?

1256


How can an exception be thrown manually by a programmer?

988


What is dot operator?

1026


What is hasnext in java?

1011


Can we pass null as argument in java?

941


Describe different states of a thread.

997


What are the characteristics of Final,Finally and Finalize keywords.

1171