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

What is the use of using enum to declare a constant?

1080


Can we convert integer to string in java?

1094


When can you say a graph to be a tree?

1133


What is difference between java and java ee?

1075


What is unmodifiable collection in java?

970


Can java cast null?

1080


Why we used vector class?

1115


Can a constructor be made final?

1161


What are "methods" and "fields"?

1067


What is difference between fail-fast and fail-safe?

1283


Are arrays immutable in java?

1150


What is the generic function?

1041


Is string a data type in java?

1057


What are the data types supported by java?

1079


What exactly is a .class file?

1098