Java came out of the gate with automatic garbage collection, making it a development platform of choice for many programmers. It was commonplace to want to avoid manual memory management in other programming languages. We have looked in-depth at the garbage collection system to include the various approaches, or algorithms, used by the JVM. Java, starting with release 9 and through 11, which includes some relevant changes to the garbage collection system. Let's review the most significant changes:
- Default garbage collection
- Depreciated garbage collection combinations
- Unified garbage collection logging
- Garbage collection interface
- Parallel full garbage collection for G1
- Epsilon—an arbitrarily low-overhead garbage collection (GC)
We will review each one of these garbage collection concept issues in the following sections...