Java features

Features of Java

Java has become the most popular and its acceptance and rapid growth due to its design characteristics and principals. The main feature of Java is to write your program once and run anywhere also called WORA (Write once and Run anywhere). Along with the platform-independent other features of java is simple, object-orientedrobust, multithreaded, and secure language. These words are also known as buzzwords of Java.

All the features of Java are listed below and discussed one by one...

  1. Simple
  2. Object-Oriented
  3. Platform-independent
  4. Secure
  5. Robust
  6. Interpreted
  7. Multi-threaded
  8. Dynamic
  9. Distributed

Features of Java

Java has become the most popular and its acceptance and rapid growth due to its design characteristics and principals. The main feature of Java is to write your program once and run anywhere also called WORA (Write once and Run anywhere). Along with the platform-independent other features of java is simple, object-orientedrobust, multithreaded, and secure language. These words are also known as buzzwords of Java.

All the features of Java are listed below and discussed one by one...

  1. Simple
  2. Object-Oriented
  3. Platform-independent
  4. Secure
  5. Robust
  6. Architecture neutral
  7. Multi-threaded
  8. Dynamic
  9. Distributed

Simple

Java is simple to learn and inherit its syntax from other programming languages C, C++. Java adopts the syntax from C and oops concept form C++ also removes various complicated and rarely used features.

Object-Oriented

In Java, the program is written with class and object and everything in Java is an object. The object-oriented concept is more close to the real world that is easy to understand and extend.

Platform Independent

As in C and C++, if a program is written is a platform suppose windows the program is compiled to generate the machine code that is only runnable on the platform in which is it compiled. The following figure helps you to understand the fact...

why-c-platform-dependent 

But in Java, the first source code is compiled into a specialized machine code known as bytecode, and bytecode is only understood and interpreted by JVM (Java virtual machine) and able to run on any platform. The following figure helps you to understand the fact...

why-java-platform-independent

JVM(Java virtual machine) is a hypothetical(virtual) machine that interprets bytecode and translates into the targeted machine code. JVM itself is platform-dependent which makes java platform-independent.

More clearly to run java program on any machine JVM must be installed on that machine and JVM. For different platforms, different JVM is available. To run java correct JVM should be installed on any machine.

Secure

Java is known for its security. Java implements various points to make java secure and simple.

  1. Java Doesn't support pointers.
  2. Java program runs inside a virtual box called JVM not directly runs on the system as shown in the following figure Which makes java more secure.

java-security

Robust

Java is Robust(strong) language because it has better memory management, automatic garbage collection, proper handling of exceptions.

Architecture neutral

Java behaves similarly to any type of machine irrespective of machine architecture as in C / C++, data type size varies on different machine architecture but in java, everything is fixed.

Multi-threaded

Java allows you to create a multithreaded application. A thread is a small part of the program that can run simultaneously and allows you to optimize resources and make your program fast and concurrent.

Dynamic

Java manages memory on runtime by loading classes dynamically and the use of garbage collection makes memory management more effective and dynamic. The distribute application object of one machine is stored in a file and transport through the network. This process makes allows you to access methods on another machine through the internet.

Distributed

Java allows you to create distributed applications with the use of RMI and EJB.