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

Lowest Common ancestor in a Binary Search Tree and Binary Tree.

933


Are static members inherited to sub classes?

1143


How will you initialize an Applet?

1153


Which package has light weight components?

1003


What is the benefit of inner / nested classes ?

988


Can a main method be overloaded?

1025


what is bmg file and how to create that files?what will it contailn?

2355


How many bytes is a string?

1138


Is singleton thread safe in java?

991


Name some OOPS Concepts in Java?

1078


What is the mapping mechanism used by java to identify IDL language?

1009


Explain access specifiers?

1179


Can you give names of Container classes?

2306


how to create multithreaded program? Explain different ways of using thread? : Java thread

999


What is the use of set in java?

1124