DEV Community

yedukondalu
yedukondalu

Posted on • Updated on

3 Components of Java Programming Language

Computer programming is a continuous and fastest changing arena. One of the purpose of programming is to find a solution to a problem in a typical way. Programmers always need to stay relevant and address new challenges, besides having a very good programming knowledge, it is very important that they also understand the internal structure of the environment in which they are the writing the code.

In this blog we are going to discuss 3 important components of Java Programming language; knowing these 3 components is must for any Java developer. We also suggest you to read our blog on Learn 7 Basics of Java Programming to Start Coding Today which discusses the basic concepts of Java Programming.

A Java Programmer writes a program in a human-readable language, called Source Code. The CPU or Central Processing Unit or Chips do not understand the Source code written in any programming language. These Chips or Computers understands only one thing: Machine Code or Machine Language. These machine codes run at CPU level, hence, it would be different machine code for different models of CPU.

We need not to worry about the machine code, as programming for us is all about Source code. To help machine to understand the source code it needs to be converted into a machine level language which is an executable code.

All these functionalities happen inside following 3 components of Java Programming Language:

Java Virtual Machine. (JVM)
Java Runtime Environment. (JRE)
Java Development Kit. (JDK)
Let us discuss these 3 components in the first part of the blog and then in the 2nd part of the blog we will also go through various applications of Java.

What is JVM?

As by now we know that a Programmer writes the Java program in a language which is not understandable by the machines. So here comes the compiler role, in case of Java programming it is Javac compiler which converts the high-level language into machine understandable language i.e. bytecode as the output.

The Java Virtual Machine (JVM) executes the bytecode generated by the compiler.

JVM performs tasks such as:

Loading the code.
Verifying the code.
The execution of the code.
Some of the important notations of JVM are:

Specification: It is a document which specifies what is required for JVM implementation.
Implementation: It is an implementation known as JRE.
Instance: Whenever you run Java class file an instance of JVM is created.

Click Here to continue reading: https://blog.simpliv.com/3-components-of-java-programming-language/

Top comments (0)