World Languages, asked by nazimahmed286539, 1 month ago

the memory space for an array is allocated when an object of the class is

Answers

Answered by yadavary09
0

Answer:

c++ is the answer of what you send the question

Answered by mili36
0
In C++, when we allocate the object using new(), the object is allocated on Heap, otherwise on Stack if not global or static. In Java, when we only declare a variable of a class type, only a reference is created (memory is not allocated for the object). To allocate memory to an object, we must use new().

Hope this will help you...
Thank you...
Similar questions
Math, 1 month ago