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

What is use of static method?

1055


Is stringwriter thread safe?

998


Explain different ways of creating a thread?

1052


What is style and indentation?

1012


Is there a jre for java 11?

1094


Why chararray() is preferred over string to store the password?

1028


Why Set interface contains unique elements, what internally implemented for this so that it contains unique elements?

8112


Can a class have multiple subclasses?

1108


Is there any way to skip finally block of exception even if some exception occurs in the exception block?

1072


What are the four corner stones of oop?

1038


How to read and write image from a file ?

1045


Can a vector contain heterogenous objects?

1076


What is this keyword in java?

1033


What do you mean by synchronized non access modifier?

998


Explain spliterator in java8?

1049