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

How do you check if a character in a string is a digit or letter?

1076


What is the purpose of the file class in java programming?

1028


What is the point of java?

1028


what is collatration?

3291


How to compare strings in java?

1020


What is included in core java?

1059


What is role of void keyword in declaring functions?

1053


How do you sort a string in java?

968


What are static variables and functions?

1154


What is bean? Where it can be used?

1088


What does the “final” keyword mean in front of a variable? A method? A class?

1000


Can we define a package statement after the import statement in java?

1069


Why does java have two ways to create child threads?

957


How many types of interfaces are there?

1076


What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?

983