public class Runtime extends Object
Constructor and Description |
---|
Runtime() |
Modifier and Type | Method and Description |
---|---|
void |
exit(int status)
Terminates the currently running Java application.
|
long |
freeMemory()
Returns the amount of free memory in the system.
|
void |
gc()
Runs the garbage collector.
|
static Runtime |
getRuntime()
Returns the runtime object associated with the current Java application.
|
long |
totalMemory()
Returns the total amount of memory in the Java Virtual Machine.
|
public void exit(int status)
public long freeMemory()
public void gc()
public static Runtime getRuntime()
public long totalMemory()