The various advantages of java are
- Multi Threaded
- High Performance
Let’s examine what each of the others implies
Java was designed to be easy for the professional programmer to learn and use effectively.if you already understand the basic concepts of object – oriented programming, learning java will be even easier. Java inherits the C/C++ syntax and many of the object – oriented features of C++, most programmers have little trouble learning java.
When you use a java-compatible Web browser, you can safely download java applets without any fear of viral infection or malicious intent. Java achieves this protection by confining a java program to the java execution environment and not allowing it access to other parts of the computer.
For programs to be dynamically downloaded to all the various types of platforms connected to the Internet, some means of generating portable executable code is needed.
Object-oruented programming models the real world. Everything in the world can be modeled as an object. Java is object-oriented because programming in java is centered on creating objects, manipulating objects, and making objects work together.
Robust means reliable. No programming language can ensure complete reliability.
Java has a runtime exception handling feature to provide programming support for robustness. Java force the programmer to write the code to deal with exceptions.
Java was designed to meet the real world requirements of creating interactive, networked programs. To accomplish this, Java supports multithreaded programming, which allows you to write programs that do many things simultaneously.
You need an interpreter to run Java programs. The programs are compiled into Java Virtual Machine code called bytecode. The bytecode is independent and can run on any machine that has a Java interpreter, which is part of the Java Virtual Machine (JVM).
Java’s performance is sometimes criticized. The execution of the bytecode is never as fast as it would be with a compiled language, such as C++. Because java is interpreted, the bytecode is not directly executed by the system, but is run through the interpreter.
Distributed computing involves several computers working together on a network. Java is designed to make distributed computing easy.
Java was designed to adapt to an evolving environment. New class can be loaded on the fly without recompilation. There is no need for developers to create, and for users to install, major new software versions.