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 is the difference between call by reference and call by pointer?

957


What is used of static keyword in java?

1065


What happens when heap memory is full?

983


How many types of literals are there in JAVA?

1041


explain the difference between jdk and jvm?

992


Tell me are there implementations for sorting and searching in the java libarary?

1028


Can we use a switch statement with strings?

1041


Explain about static imports in java?

990


How objects of a class are created if no constructor is defined in the class?

1062


What is an example of procedure?

1029


what invokes a threads run() method? : Java thread

1012


What is math in java?

1057


Can you explain inner class.

1072


What is the difference between == and === javascript?

1172


can any body body expalin best definitions & best real time exaples for opps concepts.

2261