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

What’s a deadlock?

1146


Can a class with private constructor be extended?

1001


What is equals method in java?

1105


Explain importance of inheritance in java?

1080


How to find the index of the largest number in an arraylist java?

1115


Why is java multithreaded?

1046


Explain wait(), notify() and notifyall() methods of object class ?

1115


What do you understand by looping in java? Explain the different types of loops.

1088


What is difference between string and stringbuffer?

1201


How do you identify independent and dependent variables?

1069


How do you use parseint in java?

1030


How define set in java?

1145


Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.

2052


What is the this keyword?

1092


What is unicode with example?

1309