Java
is a simple and yet powerful object oriented programming language and it is in
many respects similar to C++. Java originated at Sun Microsystems, Inc. in
1991. It was conceived by James Gosling, Patrick Naughton, Chris Warth, Ed
Frank, and Mike Sheridan at Sun Microsystems, Inc. It was developed to provide
a platform-independent programming language.
Why So Popular
However,
Java differs from other programming languages in a couple of significant ways.
The following sections describe the most important differences.
OPEN SOURCE: Being a open source java Becomes so popular
PLATFORM
INDEPENDENCE
OBJECT ORIENTED
Object Oriented
Programming is a method of implementation in which programs are organized
as cooperative collection of objects,
JAVA IS DISTRIBUTED
With
extensive set of routines to handle TCP/IP protocols like HTTP and FTP java can
open and access the objects across net via URLs.
JAVA IS MULTITHREADED
One of the powerful
aspects of the Java language is that it allows multiple threads of execution to
run concurrently within the same program A single Java program can have many
different threads executing independently and continuously. Multiple Java
applets can run on the browser at the same time sharing the CPU time.
JAVA IS SECURE
Java was designed to
allow secure execution of code across network. To make Java secure many of the
features of C and C++ were eliminated. Java does not use Pointers. Java
programs cannot access arbitrary addresses in memory.
GARBAGE COLLECTION
Automatic garbage
collection is another great feature of Java with which it prevents inadvertent
corruption of memory. Similar to C++, Java has a new operator to allocate
memory on the heap for a new object. But it does not use delete operator to
free the memory as it is done in C++ to free the memory if the object is no
longer needed. It is done automatically with garbage collector.
No comments :
Post a Comment