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 / venkatesh

No we can't declare a static variable in a method.
only final and default scope variables are allowed inside
the method

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why string is immutable or final in java

1135


Is string is a class in java?

1016


What is data structure in java?

1035


What is %d in printf?

1091


Can you sort a string in java?

965


What is length in java?

1055


Why stringbuilder is not thread safe in java?

1061


What is a generic code?

1124


What does nullpointerexception mean?

1137


What is the use of hashmap in java?

1133


What is difference between an object and a class?

1161


Explain how can you debug the Java code?

1109


Can an interface have a class?

1041


why are wait(), notify() and notifyall() methods defined in the object class? : Java thread

1045


Give me example of derived data types.

1204