Class Runtime in Java

Class Runtime in Java Every Java application has a single instance of class Runtime. Runtime class…