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

No, you can declare static variable only in static method

Is This Answer Correct ?    6 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you implement polymorphism in our day to day life?

3182


What is a website container?

905


Why main function is static?

1154


What is meant by anonymous class?

981


What is hash code collision?

1008


Why are data types important?

1008


What are byte codes?

1144


What is the difference between the font and fontmetrics classes in java programming?

1041


Why destructor is not used in java?

934


What are kinds of processors?

939


Is vector ordered in java?

962


Why hashcode is used in java?

925


How do constructors use this() and super()?

1061


Is heap stored in ram?

911


What is null in java?

920