Java features
Java has many outstanding features. They are known as household terms. These features are simple and easy to learn. Below is a list of java features:
.png)
-
Simple
-
Object Oriented
-
Platform Independent
-
Secured
-
Robust
-
Architecture-neutral
-
Portable
-
Dynamic
-
Interpreted
-
High Performance
-
Multi-thread
-
Distributed
Simple
The Java language is characterized by simplicity because:
- The syntax is based on C++ (so learning Java will be very easy once the programmer learns C++)
- Removed many confusing and rarely used features such as explicit pointers, operator overloading, etc.
- You don't need to delete objects that are not referenced, because the Garbage Collection in Java will do it for you.
Object oriented
Object-oriented means that we organize software as a combination of many different types of objects, including a tight combination of both data and their behavior.
Object-oriented programming (OOP) is a method that simplifies software development and maintenance by providing a number of rules.
Some basic concepts of object orientation (OOP) are:
- Object
- Class
- Inheritance
- Polymorphism
- Abstraction
- Encapsulation
Platform independence
A Platform is the hardware or software environment in which one or more programs run. There are two types of Platforms, one is software-based and one is hardware-based. Java provides a software-based platform. Java Platform differs from many other platforms in that it runs on different hardware-based platforms. It has two components:
-
JRE (Java Runtime Environment)
-
API (Application Programming Interface)
Java code can run on many platforms such as Windows, Linux, Sun Solaris, Mac/OS, ... Java code is compiled by Compiler and converted into Bytecode. This bytecode is platform independent code because it can run on many different platforms. That's why Java has the slogan "Write Once and Run Anywhere".
Security
Java is secure because:
- There is no explicit pointer.
- The program runs inside a virtual machine.
- Classloader: Adds security by separating packages for local file system classes from which they are imported with files from network sources.
- Bytecode Vertifier: Checks code to find invalid sections of code that could give unauthorized access to objects.
- Security Manager: Decide which resources a class can access such as reading and writing to local disk.
These security features are provided by the Java Language. In addition, a few other security features are provided through the developer such as SSL, JAAS, cryptography, ...
Robust
You can simply understand that Robust means strong. Java uses a powerful memory manager. That is, Java uses fewer pointers to avoid security-related problems. Besides, Java also has an automatic Garbage Collection. There is exception handling and a mechanism to check the type of exception that occurred. Those are the highlights for powerful Java!
Architecture – focus
An application is compiled on this hardware architecture and that application runs on all other hardware architectures. For example: An application is compiled with a 32bit processor and it will run well on a 64bit processor.
Portable
Java is a portable programming language because java can execute its applications on all different operating systems and hardware.
High performance
Java performance is faster since it is interpreted into ByteCode, native code is slower than some compiled languages (e.g. C++).
Multi-thread
We can create distributed applications in Java. RMI and EJB are used to create these applications. We can access files by calling methods from any device on the internet.
Distributed
A Thread is like a separate program, executing concurrently. We can write Java programs that handle multiple tasks at the same time by defining multiple Threads. The main advantage of Multi-thread is that it shares the same memory. Threads are important for Multi-media, Web App, ...
Did you find this article helpful?
Support the author so they can write more quality articles!