Stack vs Heap Memory Explained π§
Learn the basics of Stack and Heap memory and how they impact your application's performance and memory management.

Alex Hyett
382.4K views β’ Nov 25, 2022

About this video
I take a look at Stack and Heap Memory and how it affects your application. Knowing how memory is handled in your application can help you understand your variables' scopes.
π Video Transcript: https://www.alexhyett.com/stack-vs-heap-memory/
π¨ Free Newsletter: https://www.alexhyett.com/newsletter/ β Join my free weekly newsletter for advice, technology and more.
β€οΈ Support my channel: https://www.alexhyett.com/supporters/ β Say thanks by buying me a coffee or becoming a loyal supporter.
π Courses: https://www.alexhyett.com/courses/ β Like the way I teach? You might like my courses too!
π¨βπ» All Code: https://git.alexhyett.com/alexhyettdev/youtube-code β Links to all the code for my YouTube videos can be found here.
β³ CHAPTERS
00:00 Introduction
00:18 Three main parts
00:28 Stack data structure
00:51 Call stack
01:19 Heap differences
01:50 Variable storage rules
01:58 Value types and reference types
02:23 Local variables
02:40 Reference types on heap
02:57 Value types on heap
03:20 Garbage collector
03:53 Exceptions to the rule
04:40 Asynchronous methods
π SOCIAL LINKS
π Mastodon β https://social.alexhyett.com/@alex
πΌ LinkedIn β https://www.linkedin.com/in/alexhyett/
βοΈ Bluesky β https://bsky.app/profile/alexhyett.com
π§βπ» WHO AM I
Iβm Alex, a Software Developer and YouTube working in the UK. I make videos about software development to help developers with the skills they need to be senior developers.
As well as this YouTube Channel, I also write articles on my website (https://alexhyett.com) as well as write a regular newsletter that contains some thoughts to help aspiring developers.
#coding #programming #developer
π Video Transcript: https://www.alexhyett.com/stack-vs-heap-memory/
π¨ Free Newsletter: https://www.alexhyett.com/newsletter/ β Join my free weekly newsletter for advice, technology and more.
β€οΈ Support my channel: https://www.alexhyett.com/supporters/ β Say thanks by buying me a coffee or becoming a loyal supporter.
π Courses: https://www.alexhyett.com/courses/ β Like the way I teach? You might like my courses too!
π¨βπ» All Code: https://git.alexhyett.com/alexhyettdev/youtube-code β Links to all the code for my YouTube videos can be found here.
β³ CHAPTERS
00:00 Introduction
00:18 Three main parts
00:28 Stack data structure
00:51 Call stack
01:19 Heap differences
01:50 Variable storage rules
01:58 Value types and reference types
02:23 Local variables
02:40 Reference types on heap
02:57 Value types on heap
03:20 Garbage collector
03:53 Exceptions to the rule
04:40 Asynchronous methods
π SOCIAL LINKS
π Mastodon β https://social.alexhyett.com/@alex
πΌ LinkedIn β https://www.linkedin.com/in/alexhyett/
βοΈ Bluesky β https://bsky.app/profile/alexhyett.com
π§βπ» WHO AM I
Iβm Alex, a Software Developer and YouTube working in the UK. I make videos about software development to help developers with the skills they need to be senior developers.
As well as this YouTube Channel, I also write articles on my website (https://alexhyett.com) as well as write a regular newsletter that contains some thoughts to help aspiring developers.
#coding #programming #developer
Tags and Topics
Browse our collection to discover more content in these categories.
Video Information
Views
382.4K
Likes
15.3K
Duration
5:28
Published
Nov 25, 2022
User Reviews
4.8
(76) Related Trending Topics
LIVE TRENDSRelated trending topics. Click any trend to explore more videos.
Trending Now