New Java programmers often believe that garbage collection is something you don’t have to worry about. You allocate memory as you need it, and the garbage collector (GC) cleans up after you. https://medium.com/@jill.thornhill/garbage-collection-tuning-in-java-improving-application-performance-f1f1c8ceb8b9