---
title: "Discussion on \"Understanding Heap and Stack Memory\" | Hashnode"
description: "Discussion on \"Understanding Heap and Stack Memory\". Understand Java heap vs stack memory, how JVM allocates memory, and common errors like OutOfMemoryError and StackOverflowError explained simply."
url: "https://hashnode.com/posts/understanding-heap-and-stack-memory/6a134414551486ce6c24d267"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Understanding Heap and Stack Memory](https://teeto.hashnode.dev/understanding-heap-and-stack-memory?utm_source=hashnode&utm_medium=feed)

Understand Java heap vs stack memory, how JVM allocates memory, and common errors like OutOfMemoryError and StackOverflowError explained simply.

May 24 · 4 min read · teeto.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#heap](https://hashnode.com/tag/heap)
-   [#memory](https://hashnode.com/tag/memory)
-   [#memory-management](https://hashnode.com/tag/memory-management)
-   [#jvm](https://hashnode.com/tag/jvm)

## Written by

[Tomisin Oladele](https://hashnode.com/@Teeto)

@Teeto

  
[View profile](https://hashnode.com/@Teeto)

Small boy trying to do big things.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
