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

Why for each loop is used?

969


What is internal iteration in java se 8?

1139


State the difference between creating string as new () and literal.

1038


when you will synchronize a piece of your code? : Java thread

969


Can an anonymous class be declared as implementing an interface and extending a class in java programming?

1187


What is module in oop?

965


How many types of assembly languages are there?

926


What is the difference between && and & in java?

1035


What is the difference between an interface and an abstract class?

965


How to convert string to byte array and vice versa?

1030


What is meant by memory leak?

994


What are heterogeneous objects?

983


What is the difference between access specifiers and access modifiers in java? 16

963


What is a Null object?

1537


What Is Composition?

1007