Java Platform
Java platform is a software or collection of programs that help us to execute applications written in
Java programming language. A Java platform consists of a Java compiler, a set of libraries, and an
execution engine.
Java platform is independent of any particular OS which makes Java programming language a
platform-independent language.
Java platform consists of the following components.
Java language
The Java Development Kit (JDK)
The Java Runtime Environment (JRE)
The Java Compiler
The Java Virtual Machine (JVM)
Apart from the above main components, the Java platform also contains garbage collectors, a set of
libraries and other additional components and tools that are required to efficiently run the Java
applications.
Let’s consider the following diagram that depicts the relationship between all these components.
So from the above diagram, we can conclude that,
JRE = JVM + library classes.
JDK = JRE + Developer tools.