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(or similarity if there are some)
between object and a variable?

Answer Posted / udayasri

Variable: Variable is a value which is change during the run
time of the program, and it allocates the memory space for
the particular data type which we mention as var = "something"
Object: Object is the blue print of the class i.e. it shows
the behavior of the class. It creates memory for that whole
class and even class is refer by this object only.

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the static variable?

1180


What is the default size of load factor in hashing based collection?

1105


How do you test a method for an exception using junit?

1267


What are the steps involved to write rmi based programs?

1070


Write a java program to count the number of words present in a string?

1023


How many types of literals are there in JAVA?

1100


Why do we use bufferedreader?

1051


Why there are some null interface in java? What does it mean?

1186


Similarity and difference between static block and static method ?

973


What does it mean that a method or field is “static”?

1024


What is the range of a character variable?

1043


What is lambda in java?

1159


Why do we need hashmap in java?

1174


Can array grow dynamically in java?

1029


What is ordered map in java?

1060