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

What is the access scope of protected access specifier?

1039


Where can I find jdk in my computer?

1029


What is an infinite loop?

1338


Can a static method be overridden in java?

1057


In case of inheritance what is the execution order of constructor and destructor?

1183


What is the major drawback of internal iteration over external iteration?

1079


Is java a compiler?

1019


What is main difference between variable and constant?

1078


Why do we need variables?

1034


What is the nested interface?

1160


what is function overloading in java?

1353


What is the += operator called?

1099


Can we define constructor in inner class?

1059


Does java support function overloading, pointers, structures, unions or linked lists?

1159


What is the difference between a constructor and a method?

1327