Because Java has automatic garbage collection, there are no mechanisms for manual memory reclamation. Automatic garbage collection banishes the tedium of manual memory reclamation and eliminates the memory leaks that plague C++ programmers.