Skip to Content
Java for Absolute Beginners: Learn to Program the Fundamentals the Java 9+ Way
book

Java for Absolute Beginners: Learn to Program the Fundamentals the Java 9+ Way

by Iuliana Cosmina
December 2018
Beginner content levelBeginner
623 pages
13h 13m
English
Apress
Content preview from Java for Absolute Beginners: Learn to Program the Fundamentals the Java 9+ Way
© Iuliana Cosmina 2018
Iuliana CosminaJava for Absolute Beginnershttps://doi.org/10.1007/978-1-4842-3778-6_13

13. Garbage Collection

Iuliana Cosmina1 
(1)
Edinburgh, UK
 

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 under the hood of the JVM to resolve yet another mystery of a running Java application.

When the Java garbage collector does its job properly, the memory is cleaned up, before new objects are ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java 17 for Absolute Beginners: Learn the Fundamentals of Java Programming

Java 17 for Absolute Beginners: Learn the Fundamentals of Java Programming

Iuliana Cosmina

Publisher Resources

ISBN: 9781484237786Purchase LinkPublisher Website