Java Programming

What is Java & Features of Java

Introduction to Java:

Java is a high level, class based and object-oriented programming language. It was released by Sun microsystems in the year 1995 by James Gosling.  It is platform Independent follows logic “ write once ,run anywhere” i.e., the compiled code can run on all platforms which supports java. Java is used to built desktop application, web application, android application, Enterprise application.

Features of Java:

Simple: Java is easy to learn  by removing all difficulties  like pointers, operator overloading as we see in C++ or any other programming languages.

Portable: This is  platform independent, which means that any application written on one platform can be easily executed in another platform.

Object-oriented: Everything is considered to be an object which possess some state, behavior and all operations are performed using these objects.

Secured: All code is converted in bytecode after compilation, which is not readable by a human. And java does not supports explicit pointers and uses exception handling to handle the exceptions , By this java is secure.

Dynamic: It supports dynamic memory allocation due to which memory wastage is reduced and performance of the application is increased.

Distributed: Java is distributed because users can create distributed applications in java. RMI and EJB are used to create distributed applications.

Robust: Java has a strong memory management system. It helps to eliminate  errors and the code is checked during compile and runtime.

Interpreted: Java uses Just-In-Time (JIT) interpreter along with the compiler for the program execution.

Multithreaded: The main advantage of multi- threading is that it does not occupy memory for each thread . It shares a common memory area. Threads are important for multi-media, web applications.

High performance:  With the use of bytecode it is easy to translate into native machine code. With the use of JIT compilers , it enables high performance.

3 Components of java:

There are three components.

JVM (Java Virtual Machine):

It is an abstract machine, physically does not exists. bytecode can be executed in run time environment. It is  a platform dependent.

Functions:

  1. Loads code.
  2. Verifies code.
  3. Executes code.
  4. Provides run time environment.

JRE (Java Runtime Environment):

  • JRE means runtime environment in which bytecode is executed. It implements the JVM and it consists of  class libraries and other files that JVM uses . It is a software package that contains what is required to run a program. It’s an implementation of JVM which physically exists.

JDK ( Java Development Kit):

It is the tool necessary to:

  • compile
  • Document
  • Package java programs.

The JDK includes JRE which contains tools for programmers. Along with JRE, it consists of  interpreter, a compiler(javac), an archiver(jar), and other tools. In short it contains JRE+ development tools.

Rashmitha Dommati

Share
Published by
Rashmitha Dommati

Recent Posts

What are Template Tags in WordPress? How to Use Template Tags

In wordpress if you are developing new or custom wordpress theme or wordpress plugin then…

2 months ago

Google Search Indexing Issues Started on 31st January to February 2024

If you are experiencing indexing issues of your website then you are not alone and…

3 months ago

Create QR Code for Pages & Post using Plugin in WordPress

On your wordpress website if you want to generate qr code for pages and posts…

3 months ago

Add Google Search Console HTML File Upload on WordPress

If you are trying to verify your WordPress website with google search console with html…

3 months ago

How Do I Add Google Search Console Verification HTML Tag in WordPress?

If you are on wordpress website and wondering how to keep search console html verification…

3 months ago

Why WordPress Too Many Redirects After URL Change

If you are getting too many redirects error on your WordPress website after changing url…

3 months ago