DEV Community

Kavya S
Kavya S

Posted on

Features of Java

Features of Java

1.Simple Syntax
Java's syntax is clean and easy to understand and remove complex features

2.Object Oriented
It focus on the concept of object and the concepts of oops like Abstraction,Encapsulation,Inheritance and Polymorphism

3.Platform Independent
Java code is compiled not into native machine code, but into an intermediate format called bytecode.This byte code can run on any platform that has a JVM.
The JVM interprets the bytecode into native machine instructions for the specific platform.
we can write it once,run anywhere if JVM is installed.

4.Interpreted and Compiled
It acts like compile during .java file to .class bytecode and interpreter during .class bytecode to machine code

5.Multithread
This allows a program to perform multiple tasks simultaneously, leading to better performance.

6.Portable
There are no implementation-dependent aspects, compiled Java code (bytecode) is highly portable. You can carry the bytecode and run it on any machine with a JVM.

7.High Performance
JIT compilers optimize bytecode to native code.so,It provides fast execution for modern applications.

8.Rich Standard Library
provides pre-built tools and libraries known as API.
With the help of these libraries developers save a lot of time.

9.Secured and Robust
It can catch mistakes early while writing the code and also keeps checking for errors when the program is running. It also has a feature called exception handling that helps deal with unexpected problems smoothly.

10.Memory Management

  • Memory management in java is handled by Java Virtual Machine.
  • Memory for objects are stored in Heap
  • Methods and local variables are stored in stack

Top comments (0)