AI, Data Science & Cloud Certificates from Google, IBM & Meta
You’re only 3 weeks away from a new language
Overview
Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
Explore effective memory management in Java in this course, one of two installments in the lively Java Memory Management series.
Syllabus
Introduction
- Make beautiful stack overflow errors
- What you should know
- Explore the code challenge environment
- What is Java memory?
- The importance of understanding Java memory
- JVM and memory management
- Stack memory
- Heap memory
- Heap vs. stack
- Primitives
- Objects
- Final classes and immutable objects
- Strings in memory
- Primitives and objects in memory
- Solution: Making an object immutable
- The problem of escaping references
- Collections and escaping references
- Avoiding escaping collection references
- Example custom objects: References on the loose
- Avoiding escaping references
- Solution: Fixing an escaping reference
- Garbage collection
- JVM tuning
- Spotting and avoiding memory leaks
- Solution: Fix the memory leak
- Next steps with Java memory management
Taught by
Matt Greencroft