What are the types of memory allocated in memory in java?

5. What are the types of memory allocated in memory in java?

  1. Heap memory
  2. Stack memory
  3. Both A and B
  4. None of these

Answer: C) Both A and B

Explanation:

Memory allocation in java occurs in two ways, mainly, stack and heap space.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.