Java: Runtime Class
Every Java application has a single instance of class java.lang.Runtime to interact with java runtime environment(JRE) in which the application is running. This class provides a method to invoke GC, get total and free memory and execute a process, etc.
We can get application current runtime by getRuntime() method but we can’t create our own instance of Runtime.
Runtime runtime=Runtime.getRuntime()
View On WordPress


















