Introduction
Java is a popular programming language used to create applications for various platforms. It is important to know the version of Java installed on your system to ensure compatibility with the programs you develop.

In this article, we will learn about the components of the Java language & learn how to check the Java version on different operating systems like Windows & Mac.
Components of Java Language
The Java language consists of several key components that work together to enable the development & execution of Java programs. These components include:
Java Development Kit (JDK)
The JDK is a software development kit that provides the necessary tools & libraries for developing Java applications. It includes the Java compiler (javac), which converts Java source code into bytecode, & other utilities like the Java debugger & documentation generator.
Java Runtime Environment (JRE)
The JRE is a runtime environment that provides the necessary components to run Java applications. It includes the Java Virtual Machine (JVM) & the core libraries required by Java programs. The JRE is typically installed on end-user systems to execute Java applications.
Java Virtual Machine (JVM)
The JVM is an abstract machine that provides a runtime environment for executing Java bytecode. It interprets the bytecode & translates it into machine-specific instructions, allowing Java programs to run on different platforms without modification. The JVM also handles memory management, security, & other runtime tasks.