Interview Questions Website: https://interview.in28minutes.com/interview-guides/java/java-memory-management/
Complete Course: https://links.in28minutes.com/java (Includes Coupon with 75% discount)
Interview Guide starts from the section titled "Java Review (Interview) Guide - Getting Started"
How is Java different from C & C++ in terms of memory management?
What is a Memory Leak?
How does Garbage Collection work?
Memory Spaces in Java
Comparison: Stack vs Heap Memory
Why is GC Complex?
Reference Counting vs Mark & Sweep
What Are Generations in Java Garbage Collection?
What is Stop-the-World (STW) GC?
Types of Garbage Collectors in Java
Customization Options for Garbage Collection
00:00:01 - Introduction to the Java Interview Guide
00:01:08 - Java Memory Management Overview
00:02:20 - Java vs. C/C++ Memory Management
00:06:59 - Memory Leaks (Definition, C vs. Java, Examples)
00:10:51 - Garbage Collection Basics
00:13:12 - Memory Spaces in Java (Stack, Heap, Metaspace, Code Cache)
00:23:09 - Stack vs. Heap Memory Comparison
00:25:01 - Garbage Collection Complexity (Mark, Sweep, Compact)
00:28:40 - Advanced Garbage Collection Concepts Intro
00:29:53 - Finding Unused Objects (Reference Counting vs. Mark & Sweep)
00:39:21 - Garbage Collection Generations (Young/Old, Minor/Major GC)
00:43:53 - Stop-the-World Garbage Collection Explained
00:45:53 - Types of Garbage Collectors (Serial, Parallel, G1, ZGC)
00:52:24 - Customization Options for Garbage Collection
00:54:14 - Conclusion and Call to Action