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 / venkatesh

No we can't declare a static variable in a method.
only final and default scope variables are allowed inside
the method

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of defining packages in java?

988


What is map and hashmap in java?

1067


What happens if a constructor is declared private?

1036


How many types of classes are there in java?

1055


What is the abstraction?

1022


Explain the term virtual machine?

1051


Why declare Main() inside the class in java ?

1069


What is use of super keyword in java?

1027


What is nan in java?

1000


How do you use compareto?

948


How many arguments can a method have java?

1029


Which method cannot be overridden in java?

998


How many JVMs can run on a single machine and what is the meaning of Just-In-Time (JIT) compiler?

1456


Do I need java on my pc?

1054


Explain treeset?

1115