Java Features
Java Features
A list of the most important features of the Java language is given below.
Simple:
Java is very easy to learn, and its syntax is simple, clean and easy to understand.
Object-oriented:
Java is an object-oriented programming language. Everything in Java is an object.
1. Object
2. Class
3. Inheritance
4. Polymorphism
5. Abstraction
6. Encapsulation
Platform Independent:
Java is platform independent because it is different from other languages like C, C++, etc. which
are compiled into platform specific machines.
Java code is compiled by the compiler and converted into byte code. This byte code is a
platform-independent code because it can be run on multiple platforms, i.e., Write Once and
Run Anywhere (WORA).
Secured:
Java is best known for its security. With Java, we can develop virus-free systems. Java is
secured because:
No explicit pointer
Java Programs run inside a virtual machine sandbox
Robust:
Robust is strong. Java is robust because:
Architecture-neutral:
Java is architecture neutral because there are no implementation dependent features, for
example, the size of primitive types is fixed.
It occupies 4 bytes of memory for both 32 and 64-bit architectures in Java.
Portable
Java is portable because it facilitates you to carry the Java byte code to any platform.
High-performance
The meaning of HIGH PERFORMANCE is better, faster, or more efficient than others
Java is an interpreted language, so It is still a little bit slower than a compiled language
(e.g., C++).
Java offers high performance as it used the JIT (Just In Time) compiler
Distributed
Java is distributed because it facilitates users to create distributed applications
Multi-threaded
Java supports multithreading programming.
A thread is an independent process to execute a set of statements.
The term multi-threaded refers to creating multiple threads to handle multiple tasks at
the same time
Dynamic
Java is a dynamic language. It supports the dynamic loading of classes. It means
classes are loaded on demand.
It also supports functions from its native languages, i.e., C and C++.