answersLogoWhite

0

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

16y ago

What else can I help you with?

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?

When a procedure finishes, any objects created inside it are typically destroyed and their memory is deallocated, unless the object is returned from the procedure or stored in a way that allows it to persist beyond the procedure's scope. If the object is not properly managed, it may lead to memory leaks or unexpected behavior in the program.


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.


Could calloc assign memory for object?

yes,it will create memory


When was In Memory... created?

In Memory was created on 1996-07-23.


When was Goldfish Memory created?

Goldfish Memory was created in 2003.