answersLogoWhite

0

When does the memory created for an object?

Updated: 8/16/2019
User Avatar

Wiki User

15y ago

Best Answer

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.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: When does the memory created for an object?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

This key word causes an object to be created in memory?

To instantiate a object, we use the new keyword in Java, which creates an object in memory.


In object oriented programming when does memory for the class is allocated and why?

While it depends on the specific language, memory for a class is usually allocated when an object of that class is created.


Do the memory will be created for both private and public data members if the object is created for a class in c plus plus?

Yes.


What happens to an object created inside a procedure when the procedure finishes?

If the object exists for only that procedure then it should be deleted, if it is to be used elsewhere then it is saved to memory


Suppose server object is not loaded into the memory and the client request for it what will happen?

If a server object is not loaded in the memory and the request for it, then the server object is loaded in to the memory and is initialized


When was In Memory Of... created?

In Memory Of... was created on 2011-03-07.


When was No Memory created?

No Memory was created in 1999.


When was Your Memory created?

Your Memory was created in 1980.


How object take place in memory in case of oops?

Objects are stored in memory according to their members. They are very similar to struct types, insofar as the total memory assigned to an object is equal to the total size of all its members, plus any padding required for member alignment. If the object contains pointers, the memory allocated to those pointers will reside elsewhere, outside of the object, regardless of whether that memory belongs to the object or not (it is not included in the object's memory footprint). Additional memory is also set aside for the v-table if the class contains any virtual methods.


When was In Memory... created?

In Memory was created on 1996-07-23.


Could calloc assign memory for object?

yes,it will create memory


When the persistence of memory was created?

The Persistence of Memory was created in 1931.