How you can force the garbage collection?
We can’t have forced garbage collection. System.gc( ) does not necessarily force a synchronous garbage collection. Instead, the gc( ) call is really a hint to the runtime that now is a good time to run the garbage collector. The runtime decides whether to execute the garbage collection at that time and what type of garbage collection to run.
December 10, 2008 | Filed Under Java
Related Post
Comments
Leave a Reply