YoVDO

Java Memory Management

Offered By: LinkedIn Learning

Tags

Java Courses Memory Leaks Courses Garbage Collection Courses

Course Description

Overview

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
1. Java Memory Explained
  • What is Java memory?
  • The importance of understanding Java memory
  • JVM and memory management
  • Stack memory
  • Heap memory
  • Heap vs. stack
2. Values vs. References
  • Primitives
  • Objects
  • Final classes and immutable objects
  • Strings in memory
  • Primitives and objects in memory
  • Solution: Making an object immutable
3. Careful: Escaping References
  • 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
4. Quick Peek at Next Steps
  • Garbage collection
  • JVM tuning
  • Spotting and avoiding memory leaks
  • Solution: Fix the memory leak
Conclusion
  • Next steps with Java memory management

Taught by

Matt Greencroft

Related Courses

ASP.NET Core New Features
LinkedIn Learning
First Look: Java 10 and Java 11
LinkedIn Learning
Java Concurrency Troubleshooting: Latency and Throughput
LinkedIn Learning
Java Essential Training: Syntax and Structure
LinkedIn Learning
IDisposable Best Practices for C# Developers
Pluralsight