Computer Science, asked by svpkala8562, 1 year ago

How you allocate the memory in java?

Answers

Answered by sushmita
2
<b><i>In C++, when we allocate the object using new(), the object is allocated on Heap, otherwise on Stack if not global or static. InJava, 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().
Answered by atharvmeena
1
injava there is so mini storage we can increse the memory of itby by our chip and we can download application
Similar questions