Java
is the language that has become most successful and popular because of the
following features.
1)
Platform Independent:
->The
java programs compiled on one operating system can be transferred and executed
on any Operating System without modifications. This can be achieved through an
application called “Java Virtual Machine” or simply JVM. This can be achieved
as follows:
->Once
we create the java source code, we compile it using Java Compiler. The compiler
then creates something called Java Byte code. This byte code can be copied and
executed anywhere i.e., even in mobile phones also. Thus, Java is also called
“Architecture Neutral” Language.
2)
Object-Oriented:
->
Java is the only Language that is a pure object-oriented. That is, every
concept of OOP is supported by Java. Also, it is noted that even the main ()
function should be defined under a class.
3)
Compiled and Interpreted:
->
Java is a language which provides both compilation and interpretation of
programs. Once java program is created, it is compiled by Java Compiler. This
compiled code (Byte code) can be executed by using Java Interpreter.
4)
Multi-Threaded:
->
Using this feature, Java supports “Multitasking”. Multitasking is the concept
of executing multiple jobs simultaneously. Multitasking improves the CPU and
Main Memory Utilization.
5)
Dynamic:
->This
is also one of the important features that made Java popular. Assume that in a
program, we created 100 functions. In no case, all the functions are executed.
But, in languages like C, whether required or not, all the functions are loaded
into memory which result in wastage of memory.
->But,
in Java, until you call a function, it is not loaded into memory. The functions
are loaded only when they are called (i.e. at run-time).
6)
Simple, small and familiar:
->
Java program are easy to build and implement when compared to languages like
‘C’ and ‘C++’ because most of the concepts in these languages which people felt
difficult and confusing are eliminated in Java. Also, the concepts in C and C++
which programmers felt comfortable are included in Java.
->Java
is a small programming language and therefore it requires less memory and less time
to load and install. Because of its sophisticated features, Java has become
familiar.
7) Robust and Secure:
->As
a robust Language, Java provides many safeguards to ensure reliable code. It
also provides exception handling concept to handle logical errors that makes a
system to crash.
-> As a secured Language, Java ensures that
programs cannot gain access to memory locations without proper authorization.
8) Distributed:
->Java
is Distributed Language for creating networking applications. It has the
ability to share both data and programs.
->Java applications provide mechanisms to open
and access objects remotely.
9) High Performance:
->
Java architecture is designed to reduce overheads during run-time. Also, the
concept of multithreading in Java increases the execution speed of Java
Programs.