Java: Lifecycle of a Java Program

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

Java-Lifecycle

The figure above 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.

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

Cheers,

Vaibhav                

             

Advertisements

2 Responses

  1. […] Java: Lifecycle of a Java Program By Vaibhav Pandey–>Technofriends Team 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); The .java file is then compiled using Java compiler and a .class file is obtained from it. … Technofriends – https://technofriends.wordpress.com […]

  2. […] Java: Lifecycle of a Java Program: This post talks about the Lifecycle of a Java program.It talks about the various stages a program goes through, right from the time its developed to the time its deployed. […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: