Java Runtime Class
Java.lang package provides a Runtime class and Every Java application has a single instance of class Runtime that allows the application to interface with the environment in which the application is running.
The declaration of java.lang.Runtime class is:
public class Runtime extends Object
The java.lang.Runtime class has a number of methods which are listed below:
|S.N||Methods & Description|
Returns the amount of free memory in the Java Virtual Machine.
Returns the maximum amount of memory that the Java virtual machine will attempt to use.
Returns the total amount of memory in the Java virtual machine.
This class inherits the methods of following class: