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

Describe the syntax of multiple inheritance? When do we use such an inheritance?

1024


What is final method?

1013


What is the difference between class forname and new?

944


What will happen to the exception object after exception handling?

944


Can we have this () and super () together?

980


What exactly is a .class file?

983


Why there is no call by reference in java?

871


Tell me a few examples of final classes defined in Java API?

1014


Can you achieve runtime polymorphism by data members?

1073


What do you mean by data type?

966


What is the equal sign?

1027


How do you sort words in java?

876


Mention a package that is used for linked list class in java.

901


What is constructor chaining in java?

1017


What is null mean in java?

1028