1. Java Features
In this Java features tutorial, we are going to learn about features of Java language, to understand Importance of Java and what made Java so popular over years? We will learn about java features like compatibility, robustness and many other features.
So, before starting with Java features, let us revise Java concepts.
2. What is Java Programming Language
Java is a general-purpose programming language developed with the aim to bring portability and a higher level of security. Other than these two main java features, there are many other features of Java that make it such a unique and popular language. They are,
- Platform Independent
- Architecture Neutral
- High Performance
3. Features of Java 9
Let us study these Java 9 features in detail.
a. Java Simplicity
Java removes the features, which were not used and created confusion too. There is also a facility for automatic garbage collection in Java so that you don’t have to delete unreferenced objects. To learn about Java Data types and Java Operators follow this links.
b. Java Object-Oriented
Java is an Object oriented language as it modeled around ‘objects’ rather than on the ‘process’. An Object-oriented programming has the following concepts that the Java language also has-
c. Java Platform Independence
Java is a platform independent language, that it is independent of whatever software environment is available.
It has two components
- Runtime Environment
- API (Application Programming Interface)
Java can run on multiple platforms as the program written is compiled and then the bytecodes generated is platform-independent code, Java offers the feature “Write Once, Run Anywhere (WORA)”.
d. Security in Java
Java is known to be such a secure language because it has the following features, they are –
- Java has no explicit pointer.
- Programs are run in a virtual machine sandbox.
- Java adds a class loader which separates the classes for a package of the local file system from imported ones from a network.
- It has a bytecode verifier which checks the code fragments for any illegal code that violate the access right.
- It as a security manager that defines the access for Java classes.
e. Java Robustness
Java is robust language i.e. a strong language. It uses a strong memory management, the lack of pointers helps in security issues, an automatic garbage collection, exception handling and also type checking mechanism which in all makes it a very strong language.
f. Neutral Java Architecture
In Java, codes are compiled and thus bytecodes are generated. These bytecodes can run on any computer architecture thus making Java architecture neutral.
g. Java Portability
Java is highly portable language as the bytecodes can be carried to any platforms.
h. High performance of Java language
Java offers high performance due to its bytecodes, it is faster than any interpreted language. Java architecture is designed to reduce overheads during runtime.
i. Distributed Applications in java
Java can create distributed applications using RMI and EJB. This feature of Java facilitates the user to call any file by calling any method on any computer.
j. Multi-Threading in Java
A thread in any language is a different program that runs concurrently, this feature helps Java to handle multiple tasks simultaneously. Threads don’t occupy memory, it works on memory sharing.
k. Java Dynamics
Java is a dynamic language which means it can link new Java class libraries, Java objects, and Java methods dynamically. It also supports functions from its native languages such as C and C++.
In this tutorial for Java, we learned the features of Java which helps us better understand the Java language and why Java is important and also why it grew so popular over years. In the upcoming tutorials, we will learn further about the Java language.
Refer List of Best Java Book to learn more.