CP 215 Lecture - 01a
CP 215 Lecture - 01a
Java
5
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
220,000 downloads of JDK 1.1 in just 3 weeks, 2 million after a year
2 million downloads for J2EE SDK
JavaOne draws 20,000 becoming the world’s largest developer conference
Over 400 Java user groups established worldwide
Java runs on consumer and embedded devices more than any other
software
The software that powers the Mars Rover
Java is Everywhere!6
What is Java?
A multi-platform, network-centric, object-
oriented programming language
Multi-platform
It can run on almost any computer platform
Network-centric
Designed with network in mind – “the network is the
computer”
Designed for building applications for the Internet
Object-oriented
It incorporates object-oriented programming model
7
Java Platform Editions
A Java Platform is the set of APIs, class libraries, and other programs used
in developing Java programs for specific applications
JDK
Java Virtual
Machine (JVM) JRE
•Is an execution MyProgram.java
engine that runs compiled
Java byte code Java API
Java Virtual Machine
Hardware - Based Platform
9
How does JVM work?
Source Code
A Java program is written public class HelloWorld {
public static void main(String args[ ]) {
System.out.println(“Hello World!”);
The program is compiled }
}
containing bytecodes
Class File
Bytecodes
The bytecodes are interpreted
by the JVM
The JVM translates bytecodes Java Virtual Machine
Compiler
Hello
Hello Hello
World!
World! World!
12
Key Points
Java is multi-platform, network-centric, object-
oriented programming language.
James Gosling is the inventor of Java.
There are three platforms of Java: J2SE, J2EE,
J2ME.
JDK is a set of tools for developing Java applications.
JVM interprets Java programs and allows them to
run on any platform.
Java is portable, robust, multithreaded, and secured.
13
END