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

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.

In classes, a static method is one that is called without an
instance of that class, while a non-static method is called
by instances of the class.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How does linkedhashmap work in java?

932


What is loop in java?

928


What is an array in java?

1126


What is the full name of java?

1057


How do you square a number?

1166


What’s the difference between the methods sleep() and wait()?

951


How to instantiate static nested classes in java?

1012


Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.

996


What are exception handling keywords in java?

974


Can we use different return types for methods when overridden?

942


What is communist flag?

964


Does java runtime require a license?

980


What is derived datatype?

1149


What do you mean by a JVM?

1140


What is meant by oops concept in java?

930