Features of Java

Some major features of java are as follow:-

  1. Simple
  2. Platform independent
  3. Object-Oriented
  4. Secured
  5. Robust
  6. Portable
  7. Interpreted
  8. High Performance
  9. Multithreaded
feature of java


It is simple because:

  1. The syntax of Java is based on C++. Programmers can easily learn it after C++.
  2. There were many complicated and rarely-used features that have been removed from Java, for instance, explicit pointers, operator overloading, etc.
  3. It has a Garbage Collector which is always used to collect unused Memory locations for improving the performance of a Java program.
  4. The user-friendly syntax for developing any applications.

Platform independent

Java is platform-independent which means you can run a program in any platform(Windows, Linux, Mac, etc.) without modifying any of the code. It is also called WORA (Write Once Run Anywhere). This is all possible because of JVM.

If we talk about c and c++, which are compiled into platform-specific machines but Java is a write once, run anywhere language. Because it generates the .class file or the bytecode while c, c++ generates object code at the compile-time and bytecode can be run on any Operating system But object code can not run on any Operating system.


We all are aware that Java supports OOP’s concepts because it is the most secure language and everything that is present in Java is basically an object.

Object means a real-world entity such as a pen, dog, car, computer, watch, etc. Object-Oriented Programming is a methodology or paradigm to design a program using classes and objects. It simplifies software development and maintenance by providing some concepts:

List of OOP’s Concepts in Java
  1. Inheritance
  2. Polymorphism
  3. Abstraction
  4. Encapsulation


Java is secured because:

  • Java compiles as a bytecode which then runs inside a Virtual machine, it cannot access the computer it runs on like a natively compiled program can.

It provides guarantees and tools for security, such as:

  1. No buffer-overflow exploits.
  2. Byte-code verification.
  3. Security permissions for different codebases.
  4. Security-related APIs.
  5. Automatic array bounds checking.
  6. Exception Handling.
  7. Memory management.
  8. Compile-time checking.


Java is Robust because it is a highly supported language. Robust means are strongrich and full-bodied. Java is robust because:

  1. Java has a Strong type checking mechanism.
  2. It is a highly supported language that means it’s rich.
  3. Java provides Powerful exception handling.
  4. It has a feature of Automatic memory management and Garbage collection.
  5. It has a two-time execution strategy that is compilation and interpretation, therefore provides reliability.


Java is known as a “portable language” because Java code can execute on all major platforms. What’s more, once you’ve compiled your Java source to byte-code or .class file, those files can be used on any Java-supported platform without modification, unlike many other languages, which require compiling machine code for each platform.


Java is both compiled or interpreted language. The First Java language is compiled into JVM bytecode which JRE can understand. ByteCode is then interpreted by the JVM making it an interpreted language.


In Java, Multithreading is a process of executing two or more threads simultaneously to maximum utilization of CPU. Each thread runs parallel to each other.

Do you know?
Features of Java This article is contribute by Study4Geeks If you want share your knowledge on Study4Geeks then go to login section.