Introduction to Java
Lesson 1
Content
History of Java
What is Java?
Java Platforms
Java Virtual Machine (JVM)
Java Development Kit (JDK)
Benefits and Features of Java
2
Take Away Points
At the end of the session you will able to:
understand and discuss the history of Java
define what is Java
differentiate and discuss the Java platforms
understand the uses and functionality of Java
development kit
understand and discuss how Java virtual machine
work
identify the components of a Java program
understand and implement Java program constructs
3
History of Java
Lesson 1
History of Java
In 1990, Sun Microsystems began an internal project known as the
Green Project to work on a new technology.
Its team originally considered C++ as the language to use but soon
abandoned it for an entirely new language called Oak.
In 1992, the Green Project was spun off and its interest directed in
building highly interactive devices for cable TV industry. It failed
to materialize.
5
History of Java
In 1994, the focus of the original team was retargeted, this time to
the use of the Internet technology.
A small web browser called HotJava was written. Oak was renamed
to Java after learning that Oak had already been trademarked.
Java came from several individuals involved in the project: James
gosling, Arthur Van hoff, Andy Bechtolsheim.
6
History of Java
In 1995, Java was first publicly released
In 1996, Java Development Kit (JDK) 1.0 was released
In 2002, JDK 1.4 (codename Merlin) was released, the most widely
used version
In 2004, JDK 5.0 (codename Tiger) was released, the latest version
7
James Gosling
James Gosling is generally credited as the
inventor of the Java programming language
He was the first designer of Java and
implemented its original compiler and virtual
machine
He is also known as the Father of Java
He is currently the Chief Technical Officer of
Sun Microsystems
8
Java Quick Facts
Lesson 1
Java Quick Facts
4.5 million Java developers, the largest community of software
developers
75% of professional developers in the world use Java
1.75 billion devices run in Java
825 million Java enabled smart cards
579 million Java enabled mobile devices
635 Java enabled phone models
700 million desktops with Java software
10
Java Quick Facts
220,000 downloads of JDK 1.1 in just 3 weeks, 2 million after a year
2 million downloads for J2EE SDK
Java one draws 20,000 becoming the world’s largest developer conference
over 400 Java user groups established worldwide
Java runs on consumer and embedded devices
11
Java Quick Facts
The software that powers the Mars Rover
Java is Everywhere!
12
Java Language
Lesson 1
What is Java?
A Multi-platform, Network centric, Object-Oriented programming
language
14
What is Java?
Multiplatform
- it can run on almost any computer platform
15
What is Java?
Networkcentric
- designed with network in mind – “the network is the computer”
- designed for building applications for the internet
16
What is Java?
Object-Oriented
- it incorporates object-oriented programming model
17
Java Platform Edition
A Java Platform is the set of APIs, Class Libraries, and other programs
used in developing Java programs for specific applications.
18
Java Platform
Edition
Lesson 1
Java Platform Edition
There are 3 Java Platform Editions
Java 2 Platform, Standard Edition (J2SE)
Java 2 Platform, Enterprise Edition (J2EE)
Java 2 Platform, Micro Edition (J2ME)
20
Java Platform
Edition
Lesson 1
Java Platform Edition
Java 2 Platform, Standard Edition (J2SE)
Core Java Platform targeting applications running on workstations.
22
Java Platform Edition
Java 2 Platform, Enterprise Edition (J2EE)
Component based approach to developing distributed, multitier
enterprise applications
23
Java Platform Edition
Java 2 Platform, Micro Edition (J2ME)
Targeted at small, standalone or connectable consumer and
embedded devices
24
Java Development
Kit
Lesson 1
Java Development Kit
Java Development Kit (JDK)
• is a set of Java tools for developing Java programs.
• Consists of Java API, Java Compiler, and JVM.
JDK
JRE
My Program.java
Java API JVM
Hardware-Based Platform
26
Java Development Kit
Java Application Programming Interface (API)
• is prewritten code, organized into packages of similar topics.
JDK
JRE
My Program.java
Java API
JVM
Hardware-Based Platform
27
Java Development Kit
Java Virtual Machine (JVM)
• is an execution engine that runs compiled Java byte code.
JDK
JRE
My Program.java
Java API
JVM
Hardware-Based Platform
28
How Does Java Work?
Source Code
A Java program is written public class HelloWorld {
public static void main(String args[ ]) {
System.out.println(“Hello World!”);
}
}
Compiler
The program is compile
Class File
ByteCode
A class file is produced containing
byte codes 29
How Does Java Work?
The byte codes are interpreted by the
Java Virtual Machine
JVM
The JVM translates byte codes into Native Machine Code
native machine code
30
Running on Different
Platforms
31
Java Features
Lesson 1
Java Features
Write Once, Run Anywhere
• Java is portable and platform independent
Network Centric
• Can work with resources across a network and multitier
architectures
Object-Oriented
• A Java program models a set of objects interacting with each other
33
Java Features
Robust
• Strong type checking
• exception handling mechanism
• automatic memory management
Multithreaded
• A Java application can run several different processes called
“threads” simultaneously
34
Java Features
Security
• Can download un-trusted code over a network and run it in a
secure environment
• Security levels and restrictions are highly configurable
35
Computer Programming 2 | Philip A. Vega 36
Summary
Now you are will able to:
understand and discuss the history of Java
define what is Java
differentiate and discuss the Java platforms
understand the uses and functionality of Java
development kit
understand and discuss how Java virtual machine
work
identify the components of a Java program
understand and implement Java program constructs
37
That All for Now!!
High thoughts must have high
language…
Aristophanes
38