How you allocate the memory in java?
Answers
Answered by
2
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
1
injava there is so mini storage we can increse the memory of itby by our chip and we can download application
Similar questions