+1 vote
in JAVA by
What is the purpose of the Runtime class?

1 Answer

0 votes
by

Java Runtime class is used to interact with a java runtime environment. Java Runtime class provides methods to execute a process, invoke GC, get total and free memory, etc. There is only one instance of java.lang.Runtime class is available for one java application. The Runtime.getRuntime() method returns the singleton instance of Runtime class.

Related questions

0 votes
asked Apr 30, 2021 in JAVA by rajeshsharma
+1 vote
asked May 5, 2021 in JAVA by SakshiSharma
...