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

What are 3 data types?

986


hr interview how many minutes asking question

2042


Can you inherit from an abstract class java?

986


What is a java applet? What is an interface?

1083


Differentiate between postfix and prefix operators in java.

1120


What is an example of a keyword?

1097


What is the purpose of return statement?

1054


What is the basic concept of java?

1006


When is an object subject to garbage collection?

1053


How do you check if a string contains only numeric digits?

1115


How do you include a string in java?

974


Who is the owner of java?

995


What do you mean by default constructor in java?

1061


Why java is called not pure object oriented language?

1011


What are the methods used to implement for the key object in the hash map?

1033