Home »
MCQs »
Java MCQs
What are the types of memory allocated in memory in java?
5. What are the types of memory allocated in memory in java?
- Heap memory
- Stack memory
- Both A and B
- None of these
Answer: C) Both A and B
Explanation:
Memory allocation in java occurs in two ways, mainly, stack and heap space.