Runs the garbage collector. Calling this method suggests that the Java Virtual Machine expend effort toward recycling unused objects in order to make the memory they currently occupy available for quick reuse. When control returns from the method call, the Java Virtual Machine has made its best effo
()
| 51 | * The method System.gc() is the conventional and convenient means of invoking this method. |
| 52 | */ |
| 53 | public void gc(){ |
| 54 | System.gc(); |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Returns the runtime object associated with the current Java application. Most of the methods of class Runtime are instance methods and must be invoked with respect to the current runtime object. |