Home » Core Java » lang » Runtime

Runtime

Suggest Object Finalization to the JVM

In this example we shall show you how to suggest an Object Finalization to the JVM. We are using the Runtime class. 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 current runtime can be obtained from the getRuntime method. An application cannot ...

Read More »

Suggest Garbage Collection to the JVM

With this example we are going to demonstrate how to suggest Garbage Collection to the JVM. We are using the Runtime class. 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 current runtime can be obtained from the getRuntime method. An application cannot ...

Read More »

Get JVM memory information with Runtime

This is an example of how to get the JVM memory information with Runtime class. 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 current runtime can be obtained from the getRuntime method. An application cannot create its own instance of this class. ...

Read More »

Get number of processors with Runtime

In this example we shall show you how to get the number of processors with Runtime class. 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 current runtime can be obtained from the getRuntime method. An application cannot create its own instance of ...

Read More »