Java Features
Java is a platform independent, simple, secure, portable, robust, multithreading, distributed, Architecture-neutral, High Performance, dynamic, Object oriented programming language.
It is created to meet the real world requirements.
- Platform Independent- Java is the first programming language that is Platform Independent. Once we have written program in Windows then we are able to run it on multiple platforms(Operating Systems), for example, Windows, Linux, Sun Solaris, Mac, Unix, etc. In other words, WORA- Write once Run anywhere. Java code can be executed anywhere on any systems.
- Simple- Java is easy to learn. The syntax of Java is based on C++ which makes easier to write the program in it. Secondly, the concept of pointers has been completely removed from Java which leads to confusion for a programmer and pointers are also vulnerable to security.
- Secure- Java is best known for its security. With Java, we can develop virus free applications. In today’s world everybody needs safety and security. Because of to the threat of hackers, people feel unsafe while using application over the Internet. To overcome such fears, Java provides safety and security features. Java provides these securities by default. Some security can also be provided by an application developer explicitly through SSL, JAAS, Oauth, JWT, Cryptography, etc.
- Object-Oriented- In Java everything with in class and object. Oops have 4 pillars- Abstraction, Encapsulation, Polymorphism and Inheritance.
- Multithreading- Two or more thread simultaneously comes into execution and they will execute at a same time. It consumes less memory and gives the fast and efficient performance.
- Robust- Robust simply means strong. Java is robust because: a) It uses strong memory management. b) There is a lack of pointers that avoids security problems.
- Dynamic- Java is a dynamic language. It supports dynamic loading of classes. It means classes are loaded on demand. It allows to do runtime changes.
- Distributed- Java is distributed because it facilitates user to create distributed applications in Java, Example- Facebook, LinkedIn, Amazon, etc. This feature of Java makes us able to access files by calling the methods from any machine on the internet. Java supports to distributed cloud platform like AWS, Azure, GCP OpenShift, etc.
- High Performance- Java enables high performance with the use of just-in-time compiler. JVM can execute byte codes (highly optimized) very fast with the help of Just in time (JIT). Java application always give us good performance as compared to other programming languages.