PDA

View Full Version : What is the purpose of the Runtime class?


rajesh
30-12-2009, 09:25 PM
The purpose of the Runtime class is to provide access to the Java runtime system.

* Runtime.freeMemory() –> Returns JVM Free Memory
* Runtime.maxMemory() –> Returns the maximum amount of memory that the JVM will attempt to use. It also helps to run the garbage collector
* Runtime.gc()