The prime reason behind creation of Java was to bring portability and security feature into a computer language. These features are also known as java buzzwords.
The most important features of java is given below –
Feature | Description |
---|---|
Simple | Java language is designed to be easy to learn. If you understand the basic concept of Object oriented programming then Java would be really very easy to become master. |
Robust | Robust simply means strong. Java uses strong memory management. There are lack of pointers that avoids security problem. There is automatic garbage collection in java. There is exception handling and type checking mechanism in java. All these points makes java robust. But the main areas which Java improved were mishandled Exceptions by introducing automatic Garbage Collector and Exception Handling. |
Object Oriented | Object-oriented means we organize our software as a combination of different types of objects that incorporates both data and behavior (methods or functions). |
Object-oriented programming (OOPs) is a methodology that simplifies software development and maintenance by providing some rules. The following are features of Java in terms of Object oriented programming langauge ->
OOP Feature | Description |
---|---|
Platform Independent | Unlike other programming languages such as C, C++ etc which are compiled into platform specific machines, but the Java language is guaranteed to be write-once, run-anywhere language.On compilation Java program is compiled into bytecode. This bytecode is platform independent and can be run on any machine, plus this bytecode format also provide security. |
Secure | When it comes to security, Java is always the first choice. With Java’s secure feature it would enables us to develop virus-free systems. |
Multi threading | A thread is like a separate program, executing concurrently. We can write Java programs that deal with many tasks at once by defining multiple threads.With Java’s multi threaded feature it is possible to write programs that can do many tasks simultaneously. Threads are important for multi-media applications and web base applications etc. |
Portable | Java Byte code can be carried to any platform. No implementation dependent features. |
Interpreted | Java byte code is translated on the fly to native machine instructions and is not stored anywhere. The development process is more rapid since the linking is an incremental and light weight process. |
High-Performance | Java is an interpreted language, so it will never be as fast as a compiled language like C or C++. But, Java enables high performance with the use of just-in-time compiler. |
Distributed | Java language is designed for the distributed environment of the internet. We may access files by calling the methods from any machine on the internet by java. |