Introduction to Java
Contents
History Characteristics of Java JDK Versions & Editions The way Java works Phases of java program A simple java Application Summary
Java: History
Developed by James Gosling at Sun Microsystems. Released the first public implementation as Java 1.0 in 1995. The language was initially called Oak. It is intended to let application developers "write once, run anywhere.
James A. Gosling A Software developer, best known as the father of the java programming language
Born Residence Nationality Employer
: : : :
May 19, 1955 San Francisco Canada Google
Characteristics
Java is
Simple Object oriented Multi Threaded Platform independent Both Compiled and Interpreted Secure Distributed
JDK Versions
JDK 1.0 (January 23, 1996) Oak JDK 1.1 (February 19, 1997)
In this version the major inclusions are AWT, JDBC, RMI.
J2SE 1.2 (December 8, 1998) Playground
The Major inclusion is Swing.
J2SE 1.3 (May 8, 2000) Kestrel
The Key Modification is JNDI.
JDK Versions
J2SE 1.4 (February 6, 2002) Merlin J2SE 5.0 (September 30, 2004) Tiger J2SE 6 (December 11, 2006) Mustang
There are 26 updates in J2SE6
J2SE 7 (July 28, 2011) Dolphin
JDK Editions
Java Standard Edition (J2SE):
J2SE can be used to develop client-side standalone applications or applets.
Java Enterprise Edition (J2EE):
J2EE can be used to develop server-side applications such as Java Servlets and Java Server Pages.
Java Micro Edition (J2ME):
J2ME can be used to develop applications for mobile devices such as cell phones.
The way java works
The goal is to write one application and have It work on different devices
Phases of java program
The following figure describes the process of compiling and executing a Java program
Simple Java Application
//This application program prints Welcome //to Java! package chapter1; public class Welcome { public static void main(String[] args) { System.out.println("Welcome to Java!"); } }
A class with main method
Summary
History
Initially called as Oak by James Gosling.
Characteristics
Simple, Multi threaded, Portable , Secure, Distributed.
JVM
An imaginary machine that is implemented by emulating software on a real machine provides the hardware platform specifications to which you compile all Java technology code
Phases of java program
Write a program, compile and run.