June 2018
Beginner
722 pages
18h 47m
English
The garbage collector (GC) runs the process that identifies the objects that are not referenced anymore and so can be removed from the memory. There is a Java static method, System.gc(), that can be used programmatically to trigger the garbage collection, but the immediate execution is not guaranteed. Every GC cycle affects the application performance, so the JVM has to maintain a balance between the memory availability and the ability to execute the bytecodes quickly enough.
Read now
Unlock full access