01 Introduction To Java
01 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
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.
6
History of Java
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
8
Java Quick Facts
Lesson 1
Java Quick Facts
10
Java Quick Facts
Java one draws 20,000 becoming the world’s largest developer conference
11
Java Quick Facts
Java is Everywhere!
12
Java Language
Lesson 1
What is Java?
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
20
Java Platform
Edition
Lesson 1
Java Platform Edition
22
Java Platform Edition
23
Java Platform Edition
24
Java Development
Kit
Lesson 1
Java Development Kit
JDK
JRE
My Program.java
Hardware-Based Platform
26
Java Development Kit
JDK
JRE
My Program.java
Java API
JVM
Hardware-Based Platform
27
Java Development Kit
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
30
Running on Different
Platforms
31
Java Features
Lesson 1
Java Features
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
Aristophanes
38