Java Platform Overview
Java Platform Overview
By
Ravi Kant Sahu
Asst. Professor, LPU
Outlines [Expected Time: 3 Hours]
• Introduction
• Why Java?
• Where it is used?
• Characteristics of Java
• Java Platform Editions
• Evolution of Java
• Understanding JDK, JRE and JVM
• How Java is platform-independent
• Evaluating Java libraries, middle-ware, and database
options
Ravi Kant Sahu, Asst. Professor @ Lovely Professional University, Punjab (India)
Introduction
Java is a programming language and a platform.
Ravi Kant Sahu, Asst. Professor @ Lovely Professional University, Punjab (India)
Why Java?
Ravi Kant Sahu, Asst. Professor @ Lovely Professional University, Punjab (India)
Where it is Used?
According to Sun, 3 billion devices run java.
• Mobile Applications
Ravi Kant Sahu, Asst. Professor @ Lovely Professional University, Punjab (India)
Characteristics of Java
• Java Is Simple
• Java Is Object-Oriented
• Java Is Distributed
• Java Is Interpreted
• Java Is Robust
• Java Is Secure
• Java Is Architecture-Neutral
• Java Is Portable
• Java's Performance
• Java Is Multithreaded
• Java Is Dynamic
Ravi Kant Sahu, Asst. Professor @ Lovely Professional University, Punjab (India)
Java Platform Editions
Ravi Kant Sahu, Asst. Professor @ Lovely Professional University, Punjab (India)
There are 3 Java Platform Editions
1. Java 2 Platform, Standard Edition (J2SE)
• Core Java Platform targeting applications running on
workstations
Ravi Kant Sahu, Asst. Professor @ Lovely Professional University, Punjab (India)
James Gosling
• James Gosling is generally
credited as the inventor of the
Java programming language
• In 1992, the Green Project was spun off and its interest directed
toward building highly interactive devices for the cable TV
industry. This failed to materialize.
• In 1994, the focus of the original team was re-targeted, this time
to the use of Internet technology. A small web browser called
HotJava was written.
• Oak was renamed to Java after learning that Oak had already
been trademarked.
Ravi Kant Sahu, Asst. Professor @ Lovely Professional University, Punjab (India)
• In 1995, Java was first publicly released.
Ravi Kant Sahu, Asst. Professor @ Lovely Professional University, Punjab (India)
JDK Versions
• JDK Alpha and Beta (1995)
• JDK 1.0 (23rd Jan, 1996)
• JDK 1.1 (19th Feb, 1997)
• J2SE 1.2 (8th Dec, 1998)
• J2SE 1.3 (8th May, 2000)
• J2SE 1.4 (6th Feb, 2002)
• J2SE 5.0 (30th Sep, 2004)
• Java SE 6 (11th Dec, 2006)
• Java SE 7 (28th July, 2011)
• Java SE 8 (18th March, 2014)
Ravi Kant Sahu, Asst. Professor @ Lovely Professional University, Punjab (India)
Understanding JDK, JRE and JVM
Ravi Kant Sahu, Asst. Professor @ Lovely Professional University, Punjab (India)
Understanding JDK & JRE
JDK
JDK is an acronym for Java Development Kit.
It physically exists. It contains JRE and development tools.
JRE
JRE is an acronym for Java Runtime Environment.
It is the implementation of JVM and used to provide runtime
environment.
It contains set of libraries and other files that JVM uses at
runtime.
Ravi Kant Sahu, Asst. Professor @ Lovely Professional University, Punjab (India)
Understanding JVM
JVM (Java Virtual Machine) is an abstract machine.
It is a specification that provides runtime environment in
which java byte code can be executed.
JVMs are available for many hardware and software
platforms.
Ravi Kant Sahu, Asst. Professor @ Lovely Professional University, Punjab (India)
How Java is Platform-independent?
Ravi Kant Sahu, Asst. Professor @ Lovely Professional University, Punjab (India)
How Java is Platform-independent?
Ravi Kant Sahu, Asst. Professor @ Lovely Professional University, Punjab (India)
How Java is Platform-independent?
Ravi Kant Sahu, Asst. Professor @ Lovely Professional University, Punjab (India)
How Java is Platform-independent?
The byte code is not native to any platform because java
compiler doesn’t interact with the local platform while
generating byte code.
Ravi Kant Sahu, Asst. Professor @ Lovely Professional University, Punjab (India)