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...

why we cannot declare static variable inside a static method

Answer Posted / swamireddy

STATIC VARIABLES ARE DECLARED CLASS DIFINITION ONLY
WITHOUT DECLARE THE WITHIN STATIC METHODS.THE STATIC
METHODS ARE ONLY USE THE STATIC VARIABLES.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a class with private constructor be extended?

945


How do you start a new line in java?

985


What is gc()?

1068


Explain about static imports in java?

993


What is the method to declare member of a class static?

1009


What is a vararg?

1034


What is final keyword?

1160


Explain the difference between the public, private, final, protected, and default modifiers?

1044


What is anti pattern in java?

968


Can we override a variable in java?

1014


Explain different types of wrapper classes in java?

1024


Are strings immutable in java?

978


What is exception propagation?

1135


What is the maximum length of a url?

968


What is getclass () getname () in java?

1148