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 / sachin kanojiya

Static variable initializes at the time of class load
(static variable initialize very first,after that static
method)that means static variable and method already define
but inside the static method can't declare static variable
because it is treat as static local member...

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is string args [] in java?

1024


How would you convert bytes to string?

975


What is the difference between preemptive scheduling and time slicing?

1060


How are variables stored?

968


What does the append?

986


Which method returns the length of a string?

1025


What about main() method in java ?

1015


What is return keyword in java?

1050


Can an interface extend a class?

972


Write a program to find the greatest of three numbers in java?

992


which pattern is default in scanner package?

2222


What is parseint?

1005


Is it compulsory for a try block to be followed by a catch block in java for exception handling?

1002


Explain about public and private access specifiers?

1041


What is singleton service?

954