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

What are the difference between composition and inheritance in java?

973


How concurrent hashmap works?

1130


Explain 5 features introduced in jdk 1.7?

978


Write an algorithm for quick sort?

973


Explain the importance of import keyword in java?

961


Is java owned by oracle?

961


Name few java 8 annotations ?

980


How to compare strings in java?

929


What is thread pool in java with example?

956


What are the differences between throw and throws?

1035


What data type is string java?

918


What happens if we override only equals?

936


Are arrays static in java?

1016


Why we used break and continue statement in java?

1074


What is object of class in java?

1078