One of the reasons Java is so productive and accepted is that Java does not require the programmer to manage memory deallocations, i.e., garbage collection is automatic and is done ???under the covers.??? In a pure Java program there is no such thing as a memory leak that exists in C/C++ and other languages.