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 the difference between static and non-static
variables?

Answer Posted / sathya

Static variables:
There is only one copy of static variable and even
when the class is instatiated, the value remains the same.

Non-static variables:
Every time the class is instatiated, the objest has
their own copy of these variables.

Is This Answer Correct ?    72 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How infinite loop is declared?

1029


What is the intersection and union methods?

1033


What are methods in java?

1002


Can you access the private method from outside the class?

979


What are the various access specifiers for java classes?

1068


Where and how can you use a private constructor?

1003


What is the purpose of using java.lang.class class?

1022


What is the similarity between dynamic binding and linking?

1125


Can an abstract class be a final class?

1007


What does || || mean in math?

948


How do you compare characters in java?

999


What is meant by attribute?

1133


Write a program to print all permutations of string?

1123


What is classname class in java?

1075


What is the platform?

1008