answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: How does the memory management is occupied when you are creating an object of a class?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Name the five key concepts about operating system that a user needs to know and understand?

1. User Interface 2. Memory Management 3. Processor Management 4. Device Management 5. File Management


Difference between object declaration and object creation?

Declaration of the object involves only creating the reference variable to the object. Example: class SampleClass{ } Object Declaration: SampleClass obj1; Object Creation: Creating an object involves use of new keyword and actually allocating memory for that object. SampleClass obj2 = new SampleClass ();


Creating and destroying objects in ooad?

Objects are memory allocation for Data held inside it at runtime. So Memory need to be allocated for objects (Creating Objects) and it need to be garbage collected or deallocated to recover memory after that object no longer needed (Destroying Objects).


How many objects of a given class can there be in a program?

It depends on the size of the object and the amount of (virtual) memory available. However, the size of an object is not determined by the amount of memory it physically occupies, but by the amount of memory it consumes. For example, a resource handle object occupies at least one word of memory, but the resource it refers to consumes additional memory. The sizeof operator only returns the size of memory occupied by the object itself, not the total memory consumed by the object.


How the new operator works in java?

1. It is the only way to create object. 2. New is a keyword. 3. New operator allocates memory for an object. 4. It is a bit faster and clever way of creating objects or instances.


Space occupied by and object is?

It is volume


When does the memory created for an object?

Memory for a Java object gets created when the object is instantiated. For example private String name = "rocky"; At the end of this statement the memory for the string object name gets created in the memory.


What is amount of the three-dimensional space enclosed within or occupied by an object geometric solid?

The space occupied by an object is its volume The space contained within a hollow object is its capacity.


What is the amount of space occupied by an object?

The answer is volume


What is the the space occupied by an object or fluid?

Volume.


What is the amount of space occupied by object?

The answer is volume


What amount of space occupied by an object it its?

volume