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 does java stand for?

1199


Is linkedlist thread safe in java?

1033


What is the properties class in java programming?

1052


What is the difference between length and length () in java?

990


What is static import?

1228


What is the difference between static method and instance method in Java?

1280


java Technical questions asked by JPMC

5141


Is alive and join method in java?

1257


What does percent mean in java?

1072


Can we create object of inner class in java?

994


What is a constructor overloading in java?

1098


Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.

1098


What is method overloading in java ?

1152


what is meant by abstract class?

1181


What are exception handling keywords in java?

1095