Abstract
When executing Java code, objects are created, used and discarded repeatedly from memory. The process through which unused Java objects are discarded is called memory management, but is most commonly known as garbage collection (GC). garbage collection was mentioned in Chapter 5 as it was needed for explaining the difference between primitive and reference types, but in this chapter we go deep into the under the hood of the JVM to resolve yet another mystery of a running Java application.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
This VM option replaces deprecated -XX:+PrintGCDetails
- 2.
If you want more details about GC this article is on point: https://www.oracle.com/technetwork/tutorials/tutorials-1876574.html
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Iuliana Cosmina
About this chapter
Cite this chapter
Cosmina, I. (2018). Garbage Collection. In: Java for Absolute Beginners. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3778-6_13
Download citation
DOI: https://doi.org/10.1007/978-1-4842-3778-6_13
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3777-9
Online ISBN: 978-1-4842-3778-6
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)