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...

why we cannot declare static variable inside a static method

Answer Posted / ravikiran

Because all the variales inside static method are by
default static

Is This Answer Correct ?    15 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?

8107


What is bubble sorting in java?

1042


Is empty string in java?

1177


Can we synchronize static methods in java?

1102


Does java support multiple inheritances?

1021


Can a static method be overridden in java?

1019


What is meant by distributed application? Why are we using that in our application?

947


Name container classes in java programming?

1101


Can we have any code between try and finally blocks?

1019


why are there separate wait and sleep methods? : Java thread

1024


what is the difference between process and thread? : Java thread

991


What exactly is methodology?

923


Which is the class in java?

1048


What is formatted output in java?

967


Can we have static methods in an interface?

1055