Runtime activities include loading and linking of the classes needed to execute a program, optional machine code generation and dynamic optimization of the program, and actual program execution.
A program written in Java calls for services from the Java Runtime Environment by issuing commands from which the expected result is returned by the Java Runtime.