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

Which access specifier can be used with class ?

943


how can you take care of mutual exclusion using java threads? : Java thread

990


What is the char data type?

938


How do you declare an empty string?

1007


What does int argc char * argv [] mean?

927


Why Java is not pure Object Oriented language?

1058


What is an error in java?

1090


There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?

1424


What are the 6 mandatory procedures for iso 9001?

945


What is singleton class in java and how can we make a class singleton?

1067


What is the importance of hashcode() and equals() methods?

998


What are the data types supported by java?

967


What is the method to expand and collapse nodes in a jtree?

979


What is meant by JVM? Is JVM platform independent or not?

1004


What are the differences between throw and throws?

1028