Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question
Tag: ram
Does both Heap and Stack of Java reside in RAM, similar to C++?
This question is not about difference between Stack and Heap in Java. In C++, both Stack and Heap are in RAM. How is it in Java? Answer Yes. Stack is used for static memory allocation and Heap for dynamic memory allocation, both stored in the computer’s RAM This is to ensure faster processing of java programs.