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

Can you declare a static variable in a method?

Answer Posted / aravinda reddy

No we can't declare a static variable in a method or static
method, static variables are class level variables. Static
means one per class as per OO rules and method level
variables scope is with in the method. So if java allows
static variable inside a method, static concept is useless.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to check if a list is sorted in java?

983


What is string value?

1103


What do you mean by hashing?

1058


why we use merge option in hybernate pls give a ex snippet

1944


How variables are stored in memory?

969


Do you know why doesn't the java library use a randomized version of quicksort?

917


What is api data?

953


How to sort array in descending order in java?

882


What is lazy initialization in java?

951


What does ide stand for?

888


What is the purpose of static methods and variables?

1001


Why do we need wrapper class?

951


Why java is called not pure object oriented language?

979


What are keyboard events?

1105


Why java is used everywhere?

964