1.1 - Java Platform Overview
1.1 - Java Platform Overview
By
Arvind Kumar
Asst. Professor, LPU
Outlines
• 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
Procedural Programming Languages
• Many early programming languages followed a paradigm
called Procedural Programming.
• These languages use a sequential pattern of program
execution.
• Drawbacks to procedural programming:
– Difficult to translate real-world use cases to a
sequential pattern
– Difficult to maintain programs
– Difficult to enhance as needed
JAVA
Java is a general purpose object-oriented programming
language.
• Mobile Applications
• Java Is Architecture-Neutral
• Java Is Portable
• Java's Performance
• Java Is Multithreaded
• Java Is Dynamic
Characteristics of Java
• Java Is Simple You need an interpreter to run Java
programs. The programs are compiled
• Java Is Object-Oriented into the Java Virtual Machine code
• Java Is Distributed called bytecode. The bytecode is
machine-independent and can run on
• Java Is Interpreted
any machine that has a Java
• Java Is Robust interpreter, which is part of the Java
• Java Is Secure Virtual Machine (JVM).
• Java Is Architecture-Neutral
• Java Is Portable
• Java's Performance
• Java Is Multithreaded
• Java Is Dynamic
Characteristics of Java
• Java Is Simple Java compilers can detect many
problems that would first show up at
• Java Is Object-Oriented execution time in other languages.
• Java Is Distributed
Java has eliminated certain types of
• Java Is Interpreted
error-prone programming constructs
• Java Is Robust found in other languages.
• Java Is Secure
Java has a runtime exception-handling
• Java Is Architecture-Neutral feature to provide programming
• Java Is Portable support for robustness.
• Java's Performance
• Java Is Multithreaded
• Java Is Dynamic
Characteristics of Java
• Java Is Simple
• Java Is Object-Oriented
• Java Is Distributed
• Java Is Interpreted
No explicit pointer
• Java Is Robust Programs run inside virtual machine
• Java Is Secure sandbox.
• Java Is Architecture-Neutral
• Java Is Portable
• Java's Performance
• Java Is Multithreaded
• Java Is Dynamic
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 Write once, run anywhere
• Java Is Portable
With a Java Virtual Machine (JVM),
• Java's Performance you can write one program that will
• Java Is Multithreaded run on any platform.
• Java Is Dynamic
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 Because Java is architecture neutral,
Java programs are portable. They can
• Java's Performance
be run on any platform without being
• Java Is Multithreaded recompiled.
• Java Is Dynamic
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 is faster than traditional
interpretation since byte code is "close"
• Java's Performance
to native code still somewhat slower
• Java Is Multithreaded than a compiled language (e.g., C++)
• Java Is Dynamic
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
Multithread programming is smoothly
• Java Is Multithreaded integrated in Java, whereas in other
• Java Is Dynamic languages you have to call procedures
specific to the operating system to enable
multithreading.
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 was designed to adapt to an evolving
environment. New code can be loaded on the
• Java Is Multithreaded fly without recompilation. There is no need for
developers to create, and for users to install,
• Java Is Dynamic major new software versions. New features can
be incorporated transparently as needed.
Java Platform Editions
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.
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.