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 an object and how do you allocate memory to it?

Answer Posted / sunitha

It is an instance of class or run time entity which binds
data members and methods together.
example:
car
Attributes(state of the object)

name, no. make , price, mileage.

Methods (Behavior of the object): start, stop,
Accelerate,
By using new operator we can allocate memory to object.

by using constructions we can allocate memory directly
here we no need to use new operator . for deal location of
memory we can use destruction's .

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain thread in java?

1163


how can you catch multiple exceptions in java?

1015


Can we inherit inner class?

1018


What is mean by exception?

1030


What is the intersection and union methods?

1023


What are the three types of design patterns?

963


Why is String immutable?

1062


What is lazy programming?

1039


What is public static?

1034


What is locale?

1032


What do you understand by overloading and overriding in java?

1076


What do you mean by garbage collection used in java?

1067


What is meant by distributed application? Why are we using that in our application?

947


What is character in data type?

960


If you do not want your class to be inherited by any other class. What would you do?

1004