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

in case of static variables memory can be allocated only at once and these variables can access with help of class name but where as non static variables have memory can be allocated in separate locations.And these variables can access with help of object

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?

1028


What is the difference between static binding and dynamic binding?

1197


Write a program in java to find the maximum and minimum value node from a circular linked list.

1150


How will you reverse a singly-link list?

1051


What do you mean by of string::valueof expression in java 8?

1005


What is the use of join method?

1086


What are scriptlets?

1137


What does this () mean in java?

1029


What is the difference between a loader and a compiler?

1089


What is thread life cycle in java?

1136


What is a dynamic array in java?

1247


What exactly is java?

998


Why string is not a wrapper class?

1228


What is meant by collection in java?

1137


How do you avoid global variables?

1142