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 do you print array in java?

1044


What is java object name?

1046


What are the features in java?

1117


How you can force the garbage collection?

1029


What is a method in java?

1099


What is boolean data type in java?

1036


Can we access instance variables within static methods ?

1150


What restrictions are placed on method overloading in java programming?

1103


Why strings in java are called as immutable?

1036


Do I need to import java.lang package any time? Why?

1452


Does unicode support all languages?

1084


What is the difference between math floor and math round?

1107


What is procedure writing?

1057


what is the constructor and how many types of constructors are used in java?

1036


Can we restart a dead thread in java?

1043