Subscribe Us

header ads

Features of Java


As we know that Java is an object oriented programming language, so it has all features which are in C++ along with it includes some additional features which makes it a complete object oriented programming language.

Some important features of Java are :-
  1. Simple
  2. Portable
  3. Secured
  4. Classloader
  5. Bytecode Verifier
  6. Security Manager
  7. Robust
  8. Multi-threaded
  9. Compiled and Interpreter

Simple :-
Java has made life easier by removing all the complexities such as pointers, operator overloading as we see in c++ or any other programming language.

Portable :-
Java is platform independent which means that any application written on one platform can be easily ported to another platform.



Secured :-
Java is best known for its security. With Java, we can develop virus-free systems.
Java is secured because :
  1. No explicit pointer
  2. Java Programs run inside a virtual machine sandbox.

Classloader :-
Classloader in Java is a part of the Java runtime environment (JRE) which is used to load java classes into the java virtual machine dynamically. It adds security by seperating the package for the classes of the local file system from those that are imported from network sources.

Security Manager :-
It determines what resources a class can access such as reading and writing to the local disk.

Robust :-
Robust simply means strong. All these points make Java robust :
  • Java uses strong memory management.
  • There is a lack of pointers that avoids security problems.
  • There is automatic garbage collection in java which runs on the Java Virtual Machine to get rid of objects which are not being used by a Java application anymore.
  • There are exception handling and the type checking mechanism in Java.

Multi-threaded :-
A thread is like a separate program, executing concurrently. We can write Java programs that deals with many tasks at once by defining multiple threads.
                                             The main advantage of multi-threading is that it doesn't occupy memory for each thread. It shares a common memory area. If we want to execute multiple programs simultaneously, then we use multi-threaded architecture. Threads are important for multi-media, web-applications, etc.

Compiled and Interpreter :-
Java has both compiled and interpreter. Program of Java is first compiled and then it is must to interpret it. 
                                            First of all, the program of Java is compiled then after compilation it creates bytes codes rather than machine language.

Post a Comment

0 Comments