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
What is the final keyword denotes?
What is the difference between logical data independence and physical data independence?
What do you mean by pointer value and address?
What is the use of private static?
What is passing parameters in java?
What is difference between pointer and reference?
What is bool mean?
Can you write a java class that could be used both as an applet as well as an application?
Who is the owner of java?
What is flush buffer?
Does java set allow duplicates?
What do you mean by inner class in java?
How to connect to a remote database using Applet?
What is appletviewer?
Is a copy constructor?