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...

What is static variable and static method?

Answer Posted / mallesh

A static variable is a variable who's single copy in memory
is shared by all objects,so any modifications to the static
variable will modify it's value in all objects.

Static variables are created in Method Area part of Memory.

Is This Answer Correct ?    147 Yes 30 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the selection sort algorithm and state its time complexity?

1070


How are variables stored?

1031


Which collection is sorted in java?

1079


Is namespace same as package in java?

1040


What are functions in java?

1003


How are variables stored in memory?

1113


What is meant by inheritance and what are its advantages?

1162


Can size_t be negative?

1243


What is java util concurrentmodificationexception?

957


What kind of variables a class can consist of?

1156


How many types of gc are there in java?

1039


What is valid keyword in java?

1043


Can we use string in the switch case?

1094


What is a treeset in java?

1107


When do we use synchronized methods in java?

1094