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 to retrieve data from database in java using arraylist?

992


What does function identity () do?

915


What is a map? What are the implementations of map?

1039


What are reference variables in java?

1066


In a container there are 5 components. I want to display all the component names, how will you do that?

2137


What are three advantages of using functions?

955


Is char * a string?

934


How do you sort in ascending order in java?

815


Why do we need wrapper classes?

1011


How to restrict a member of a class from inheriting by its sub classes?

1285


Difference between operator overloading and function overloading

1012


How many java versions are there?

997


v-model life cycle

1994


What are functions in java?

898


What is class level lock ?

972