JAVA
JAVA
Platform:
Any hardware or software environment in which a program runs, is known as a
platform. Since Java has its own runtime environment (JRE) and API, it is called
platform.
Where it is used?
According to Sun, 3 billion devices run java. There are
many devices where Java is currently used. Some of
them are as follows:
Desktop Applications such as acrobat reader, media
player, antivirus etc.
Web Applications such as irctc.co.in, javatpoint.com
etc.
Enterprise Applications such as banking applications.
Mobile
Embedded System
Types of Java Applications
1) Standalone Application
It is also known as desktop application or window-
based application. An application that we need to
install on every machine such as media player,
antivirus etc.
2) Web Application
An application that runs on the server side and
creates dynamic page, is called web application.
Currently, servlet, jsp, struts, jsf etc. technologies
are used for creating web applications in java.
Types of Java Applications
3) Enterprise Application
An application that is distributed in nature, such
as banking applications etc. It has the advantage
of high level security, load balancing
4) Mobile Application
An application that is created for mobile devices.
Currently Android and Java ME are used for
creating mobile applications.
Java Platforms / Editions
4) JavaFx
It is used to develop rich internet applications. It
uses light-weight user interface API.
Prerequisite
JVM:
JVM (Java Virtual Machine) is an abstract
machine. It is a specification that provides
runtime environment in which java bytecode can
be executed.
JVMs are available for many hardware and
software platforms. JVM, JRE and JDK are
platform dependent because configuration of
each OS differs. But, Java is platform
independent.
The JVM performs following main tasks:
Loads code
Verifies code
Executes code
Provides runtime environment
JRE:
JRE is an acronym for Java Runtime
Environment.It is used to provide runtime
environment.It is the implementation of JVM.
It physically exists. It contains set of libraries +
other files that JVM uses at runtime.
JDK
JDK is an acronym for Java Development Kit.It
physically exists. It contains JRE +
development tools.