Java Compilation and Execution Processes

This section provides a quick introduction of Java compilation and execution process.

A Java application program is made of one or more classes and zero or more interfaces. One of the class must have the main() method as the execution starting point of the program. There are 3 steps involved in creating the classes and interfaces of a Java program, and running the program:

Here is sample session of compiling and executing a simple Java application on a Linux system:

%cat Hello.java
class Hello {
   public static void main(String[] a) {
      System.out.println("Hello world!"); 	
   }
}

%javac Hello.java

%java Hello
Hello world!

Table of Contents

 About This Book

 1957 - FORTRAN Language Developed by IBM

 1970 - UNIX Operating System Developed by AT&T Bell Labs

 1971 - FTP Protocol Created by Abhay Bhushan

 1972 - C Language Developed by Dennis Ritchie

 1976 - vi Text Editor Developed by Bill Joy

 1977 - Apple II Designed by Steve Jobs and Steve Wozniak

 1977 - The Bourne Shell Developed by Stephen Bourne

 1978 - The C Shell Developed by Bill Joy

 1978 - Bash (Bourne-Again Shell) Developed by Brian Fox

 1979 - The Tcsh (TENEX C Shell) Developed by Ken Greer

 1983 - "Sendmail" Mail Transfer Agent Developed by Eric Allman

 1984 - Macintosh Developed by Apple Inc.

 1984 - X Window System Developed a MIT Team

 1991 - WWW (World Wide Web) Developed by Tim Berners-Lee

 1991 - Gopher Protocol Created by a University of Minnesota Team

1995 - Java Language Developed by Sun Microsystems

 What Is Java Language?

Java Compilation and Execution Processes

 Java Is Platform Independent

 Java Is an Object-Oriented Language

 Java Supports Automatic Garbage Collection

 Java Supports Multi-Threading Programming

 1995 - PHP: Hypertext Preprocessor Created by Rasmus Lerdorf

 2002 - .NET Framework Developed by Microsoft

 References

 PDF Printing Version