JAVA

Java Features


Java Features

 

Object-Oriented:- 

Java is a pure object-oriented programming language.
Through which we can understand the code easily.
And we can also be used in any other file.
There are 4-pillars of OOP's in Java.
A. Encapsulation.
B. Inheritance.
C. Abstraction
D. Polymorphism.

Platform Independent:- 

 1. Java is a platform independent language which means that code written in Java can be run on any computer and operating system. 
 2. Java is platform independent language because in Java the source code is compiled into intermediate code which we call byte code and every system which has JVM interprets the byte code.

Simple:- Java is an easy language because it has syntax similar to C++ which can be easily learned. Operator overloading and header files are not used in Java, which makes it even easier.

Secure:- Java is the most secure because Java programs run in the Java runtime environment. Java uses public key encryption and Java applications are accessed in secure encrypted form on the Internet.

Portable:- It is a portable language whose code can be run on any device.

Compiled and Interpreted:- In Java, the source code is compiled into byte code and then it is interpreted into machine code by JVM.

Robust:- 

 1. In Java, garbage collection is done automatically and the memory allocation in it is very good. 
 2. Whatever errors arise in Java can be solved easily. For all these reasons, Java is a robust language.

Distributed :- Java is a distributed language which means that Java programs are designed to run on the Internet and HTTP and FTP protocols are used in Java so that they can be easily accessed on the Internet.

Multi threaded:- Multi threading is used in Java, that is, in Java the program is divided into small sub programs and these sub programs are executed sequentially.