Freeing instances of classes
You do not need to take any action to free individual object instances of any class. No syntax is available for doing so. The Java™ runtime system automatically performs garbage collection, that is, it reclaims the memory for objects that are no longer in use.
There could be times, however, when you need to explicitly free local or global references to objects within a native COBOL client in order to permit garbage collection of the referenced objects to occur.