Some important features of Java are :-
- Simple
- Portable
- Secured
- Classloader
- Bytecode Verifier
- Security Manager
- Robust
- Multi-threaded
- 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 :
- No explicit pointer
- 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.
0 Comments
Tell us your queries or more topics which you want