Introduction to JAVA Programming Language

Introduction to JAVA Programming Language

Sun Microsystems of the United States created the object-only programming language JAVA in 1991. It is a class-based, object-oriented, general-purpose programming language that runs on multiple platforms and is intended to have fewer implementation dependencies. Different organizations favor it as the fastest, safest, and most well-liked programming language to develop their projects.

James Gosling gave it the original name of OAK. This indicates that James Gosling at Sun Microsystem developed the Java platform in 1991, and that Oracle Corporation later acquired Sun Microsystem and took ownership.

How does JAVA work?

JAVA is compiled into the bytecode and then it is interpreted for the machine code.

First, we must create a Java source file with some meaningful logic in it; otherwise, we won’t be able to run the programme. Next, we must save the file with the class name and the.java extension. Example: “class.java”.

The second step entails using a compiler to transform the source code into java bytecode, which is then output in a file with the extension “.class”. The Java bytecode was created by redesigning the Java source codes, allowing it to run on any system, regardless of the platform on which it was created.

And then we put that bytecode in the Java Virtual Machine which is an interpreter that reads all the statements step by step thoroughly from that bytecode which will again be converted into the machine-level language so that the machine can understand & execute the code easily. And then we get the output.

Why use JAVA?

  • Java is platform-independent so that the java program can run on any system (Windows, Mac, Linux, Raspberry Pi, and many more.)
  • It is one of the easy-to-learn programming languages
  • It is one of the most popular and demanded programming languages.
  • It is an open-source and free platform.
  • Its programs allow code to be reused.
  • It is secure, fast, and powerful
  • It is likely to close C++  and C#.
  • It is Portable.

Terminology of JAVA

Moving towards terminology there are some important Java terms that we need to understand. So let’s have a depth understanding of java terminology.

Java Development Kit(JDK)

Java Development Kit(JDK) is a key platform component for building Java applications. It offers a different collection of tools and libraries that are necessary for developing Java-based software applications and applets. It is one of the three core technology packages which is used in the Java programming language, along with the Java Virtual Machine(JVM) and the Java Runtime Environment(JRE).

Java Run-time Environment(JRE)

Let me be clear: JDK includes JRE here. It enables smooth operation of the Java programme after installation. Yet we were still unable to compile it. The applet supports a browser and a few additional plugins because of this. JRE is therefore required in order to run Java programmes on your computers. Consequently, the JRE now consists of a number of components, including:

  • Java virtual machine (JVM)
  • Java class libraries
  • Java class loader

When a system is ready to execute a program, it requires some environment to run. It is applicable to any operating system, like Microsoft Windows, Linux, Unix, macOS, etc. So the JRE here acts as a translater and converter between the java program and the operating system.

Java Virtual Machine(JVM)

A virtual machine is a Java virtual machine (JVM). It makes it possible for a computer to execute Java programmes and aids in bytecode compilation. When we use the JRE and JDK to run a Java programme, the JVM is also consulted and is ready to run the Java programme as well as interpret it. Normally, it compiles the code and then executes the bytecode that the compiler provides. Additionally, any machine can easily execute the JVM’s output. This is the main justification for Java’s platform independence.

Features of JAVA

  • Platform-independent
  • Object-oriented
  • Easy-to-use
  • Portable
  • Robust
  • Secure
  • Multithreaded
  • Interpreted
  • High performance
  • Dynamic
  • Architecture-neutral

For more read with us Oraltadalafil

1 thought on “Introduction to JAVA Programming Language”

Leave a Comment

%d bloggers like this: