Skip to main content

Posts

Showing posts from 2012
Execution of Java Program This section specifies activities that occur during execution of a Java program. It specifies the detailed procedures used in starting up the virtual machine, class and interface type loading, linking, and initialization. It then specifies the procedures for creation of new class instances. It concludes by describing the unloading of classes and the procedure followed when a virtual machine exits. Virtual Machine Start-up A Java Virtual Machine starts execution by invoking the method main of some specified class, passing it a single argument, which is an array of strings. This causes the specified class to be loaded, linked to other types that it uses, and initialized. The method main must be declared public, static, and void. In Sun's JDK implementation on UNIX, the command line Java Robo Shakanr Rajani Aishwarya Sun will start a Java Virtual Machine by invoking the method main of class Robo (a class in an unnamed package), passing it an array...