Java Introduction

Java Introduction

Java developed by James Gosling launched in the year 1994. It easily runs on multiple platforms such as, Windows, Linux, and MacOS. Initially, the releases of Java were numbered as version 1.0, 1.1., 1.2, and so on. Now, the version is represented as “Java 2” for JDK 1.2 and above. Under Java Introduction, we will discuss about the features of Java.

Java is quite popular for Write Once, Run Anywhere. Also, Java comes with a compiler and interpreter. Java came as an improvement to C++, and removed complicated features. It is said to be based on C++ and considered as a “pure” object oriented language, since it only deals with Object Oriented Programming (OOP).

Features of Java

Here are the features of Java,

Introduction to Java

Architecture Neutral

Just compile your Java program and take it to another operating system. The same program works in another operating system as well without the need of recompiling it. This is why it is called Write Once, Run Anywhere, Anytime, Forever”.

Security

Java programs are secure since it gets compiled first into byte code, which leads to its verification.

Auto Garbage Collection

Java comes with automatic garbage collector, which makes memory more efficient by reclaiming memory for reuse. In C++, garbage collection isn’t automatic, so we use delete() function. But in Java, there is no need to use any function, since garbage collector work automatically being part of JVM.

Multi-threading

Java comes with multi-threading concept, which makes the program quite effective, unlike single threading. You can easily execute multiple threads simultaneously with Java.

Pure Object Oriented Language

Java deals with Object Oriented Programming Language, so it has all the concepts of object oriented such as,

Classes: Classes are blueprint consisting of data members and member functions.

Objects: Object is an instance of a class.

Abstraction: Abstraction only shows the important details and hides what isn’t necessary.

Polymorphism: Polymorphism means “poly + morphos” i.e. many forms. It is divided into Static Binding or Dynamic Binding.

Inheritance: Inheritance is when you create a new class from the existing class. Here, new class in the Derived Class, whereas the existing class is Base class.

Java Tutorial
Install Java on Windows
Studyopedia Editorial Staff
Studyopedia Editorial Staff
[email protected]

We work to create free tutorials for all.

No Comments

Post A Comment