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

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 ?    90 Yes 49 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a class be a super class and a sub-class at the same time? Give example.

1446


What is finalize method?

1042


What are "methods" and "fields"?

970


What are different types of arrays?

953


How many types of design patterns are there?

1043


What are the types of casting?

1006


Are floats faster than doubles?

986


what r advatages of websphere? & how to deploy?

2103


What is the use of string and stringbuffer?

935


Can we override private methods?

974


What environment variables are required to be set on a machine in order to run Java programs?

1112


Which package is used for pattern matching with regular expressions?

1055


How much is a java license?

868


How do you sort in java?

939


How to implement an arraylist in java?

1040