ContactUs :

Please send your Questions & Answers or Feedback to "mohan@javabook.org"

What is the purpose of the Runtime class?

The purpose of the Runtime class is to provide access to the Java runtime system.
It returns the runtime information like memory availability.
* 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()
Related Posts Plugin for WordPress, Blogger...
Flag Counter