Java Introduction and Features

Java was developed by James Gosling and released in 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 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 a “pure” object-oriented language since it only deals with Object Oriented Programming (OOP).

Video Tutorial (English)

Video Tutorial (Hindi)

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 to recompile it. This is why it is called Write Once, Run Anywhere, Anytime, Forever”.

Security

Java programs are secure since they get compiled first into bytecode, which leads to their verification.

Auto Garbage Collection

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

Multi-threading

Java comes with the 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: A class is a blueprint consisting of data members and member functions.
  • Objects: An 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 and Dynamic Binding.
  • Inheritance: Inheritance is when you create a new class from the existing class. Here, the new class is the Derived Class, whereas the existing class is the Base class.

If you liked the tutorial, spread the word and share the link and our website Studyopedia with others.


For Videos, Join Our YouTube Channel: Join Now


Read More

Install Java on Windows
Studyopedia Editorial Staff
contact@studyopedia.com

We work to create programming tutorials for all.

No Comments

Post A Comment