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

What is a line separator in java?

990


how its run?

1075


we have syntax like for(int var : arrayName) this syntax is to find whether a number is in the array or not.but i want to know how to find that number's location.

2039


What is use of static method?

1062


How to find the largest value from the given array.

1021


What do you understand by classes in java?

1015


Why is multithreading important?

952


Is 9 a prime number?

891


What is object english?

1067


What is backdrop?

1081


can I implement my own start() method? : Java thread

997


How can we find the sum of two linked lists using stack in java?

1164


What are the advantages of autoboxing?

1023


What do you mean by default constructor in java?

1081


Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.

1331