I know the difference between Stack and Heap memory however in many blogs I came across this word off-heap
memory. I went through many blogs and youtube videos to find out if there is any relation between off-heap memory and Stack memory?
According to the popular answer of this question, I can understand that the off-heap memory refers to store objects that are managed by EHCache and are not subjected to Garbage collection. This definition is perfect but my question is, is off-heap memory the same as Stack memory or its all together a different entity in the memory management?
Edit: If they are not same, could someone please explain in detail what makes them different with some basic explanation. I am quite new to the java memory management.