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

What is the difference between equals() and?

1168


What is http client in java?

1065


Why synchronization is important in java?

1028


How big is a pointer?

1016


What is the replace tool?

1137


Can list have duplicates in java?

888


How concurrent hashmap works?

1171


Can you give few examples of final classes defined in java api?

991


What is ‘has a’’ relationship in java?

1201


What is hashtable and explain features of hashtable?

969


What is oops in java?

992


What is difference between wait and notify in java?

1116


What is the gregoriancalendar class in java programming?

1016


What is module with example?

984


What is the difference between preemptive scheduling and time slicing in java programming?

1000