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

If you do not want your class to be inherited by any other class. What would you do?

1000


What is downcasting?

1098


What is the replace tool?

1155


What is the final access modifier in java?

1073


What is mnemonic code?

1009


How do you delete a list in java?

942


Explain list interface?

954


What are the core java topics?

1034


What is r * in math?

993


How do you remove an object from an arraylist in java?

957


Explain the meaning of java applet.

1063


Explain the use of volatile field modifier?

1071


How do I write a self declaration?

1104


Are maps ordered java?

945


What is the difference between the paint() and repaint() methods?

1059