Java Memory Management: Values and References

Go to class
Write Review

Free Online Course: Java Memory Management: Values and References provided by LinkedIn Learning is a comprehensive online course, which lasts for 1-2 hours worth of material. The course is taught in English and is free of charge. Upon completion of the course, you can receive an e-certificate from LinkedIn Learning. Java Memory Management: Values and References is taught by Maaike van Putten.

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
    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
    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
    4. Quick Peek at Next Steps
    • Garbage collection
    • JVM tuning
    • Spotting and avoiding memory leaks
    Conclusion
    • Next steps with Java memory management