Don't miss the latest updates, ever

Java: Lifecycle of a Java Program

Sunday, 30 September 2007, 21:35 | Eclipse, IDE, Java, JRE, JVM | 3 Comments | Read 2273 Times
by Vaibhav Pandey

It had been long since i posted something about Java and thought of putting up a post describing Lifecycle of a Java Program.

The figure below explains the lifecycle of a Java Program. In words, the figure can be explained as:

  1. A Java program is written using either a Text Editor like Textpad or an IDE like Eclipse and is saved as a .java file. (Program.java)
  2. The .java file is then compiled using Java compiler and a .class file is obtained from it. (Program.class)
  3. The .class file is now portable and can be used to run this Java program in any platform.
  4. Class file (Program.class) is interpreted by the JVM installed on a particular platform. JVM is part of the JRE software.

Java-Lifecycle

Related Reads: What is the difference between JDK and JRE?

You can follow me on Twitter at http://twitter.com/vaibhav1981

Do stay tuned to Technofriends for more, one of the best ways of doing so is by subscribing to our feeds. You can subscribe to Technofriends feed by clicking here.



Follow me on Twitter at @vaibhav1981
Tagged with: , , , , , , , , , , , , , , , ,