Java2all.com  

Features of Java





Share This Topic -

Features of Java:

1) Simple and Powerful

If the user already understands the basic concepts of object-oriented programming, learning Java with be much easier, Because Java inherits the C/C++ syntax and many of the object-oriented features of C++.so we can say that Java was designed to be easy to learn and use.

java provides a small number of clear ways to achieve a given task.

Unlike other programming systems that they provide dozens of complicated ways to perform a simple task.

2) Secure

Using Java Compatible Browser, anyone can safely download Java applets without the fear of viral infection or malicious intent because of its key design principle. So anyone can download applets with confidence that no harm will be done and no security will be violated.

Java achieves this protection by confining a Java program to the Java execution environment and by making it inaccessible to other parts of the computer.

3) Portable

Many types of computers and operating systems are in use throughout the world—and many are connected to the Internet. Java makes it possible to have the assurance that any result on one computer with Java can be replicated on another. So the code is run in the different platform has a same result.

4) Object-oriented

Java support the all the features of object oriented programming language such as Abstraction, Encapsulation, Inheritance, Polymorphism and Dynamic binding etc….

So with the help of these features user can reduce the complexity of the program develops in JAVA.

Java gave a clean, usable, realistic approach to objects so we can say that the object model in Java is simple and easy to extend.

5) Robust

Most programs in use today fail for one of the two reasons:

(i) memory management mistakes

For example, in C/C++, the programmer must manually allocate and free all dynamic memory. This sometimes leads to problems, because programmers will either forget to free memory that has been previously allocated or, sometimes try to free some memory that another part of their code is still using. Java virtually eliminates these problems by managing memory allocation (with the help of new operator) and deallocation. (deallocation is completely automatic, because Java provides garbage collection for unused objects.)

(ii) mishandled exceptional conditions

With the help of Exception Handling (try……….catch block), the programmer can easily handle an error or exception so user can prevent the program by automatically stop the execution when an exception found.

Thus, the ability to create robust programs was given a high priority in the design of Java.

6) Multithreaded

Java supports programming, which allows the user to write programs that perform many functions simultaneously.

The two or more part of the program can run concurrently then each part of such a program is called a Thread and this type of programming is called multithreaded programming.

Each thread defines a separate path of execution. Thus, multithreading is a specialized form of multitasking.

7) Architecture-neutral

The Java designers worked hard in achieving their goal “write once; run anywhere, anytime, forever” and as a result the Java Virtual Machine was developed.

Java is Architecture-neutral it generates bytecode that resembles machine code, and are not specific to any processor.

8) Interpreted and High performance

The source code is first compile and generates the code into an intermediate representation called Java bytecode which is a highly optimized set of instruction code.

This code can be interpreted on any system that has a Java Virtual Machine and generates the machine code.

Java bytecode was carefully designed by using a just-in-time compiler so that it can be easily translated into native machine code for very high performance.

Most of the earlier cross-platform solutions are run at the expense of performance.

9) Distributed

Java allows the object can access the information across the network with the help of RMI (Remote Method Invocation) means this allowed objects on two different computers to execute procedures remotely. So this feature supports the client/server programming.

10) Dynamic

Java programs carry with them substantial amounts of run-time type information that is used to verify and resolve accesses to objects at run time. This makes it possible to dynamically link code in a safe and perfect manner.