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 synchronization? : Java thread

1070


Can we sort hashmap in java?

997


Write a program to check for a prime number in java?

1089


What is java jit compilers?

1060


What is a boolean flag in java?

1083


Explain some best practices you would apply while using collection in java?

1097


What are the data types supported by java? What is autoboxing and unboxing?

1065


What is difference between protected and private?

1142


What is data object example?

1076


What does regex mean?

1076


What is array and arraylist in java?

1168


What is the diffrence between inner class and nested class?

1139


Can we define constructor in inner class?

1059


What are parsers? Dom vs sax parser.

1106


What is the difference between checked exception and unchecked exception?

1060