Features of Java
§ Features of a
language are nothing but the set of services or facilities provided by the
language vendors to the industry programmers. Some important features are;
- Simple
- Platform Independent
- Architectural Neutral
- Portable
- Multi-Threading
- Distributed
- Networked
- Robust
- Dynamic
- Secured
- High Performance
- Interpreted
- Object Oriented
1. Simple
It is simple because of the
following factors:
- It
is free from pointer due to this execution time of
application is improve. [Whenever we write a Java program without pointers
then internally it is converted into the equivalent pointer program].
- It
has Rich set of API (application protocol interface).
- It
have Garbage Collector which is always used to collect
un-Referenced (unused) Memory location for improving performance of a Java
program [Garbage collector is the system JAVA program which runs in the background
along with regular JAVA program to collect unreferenced memory locations
by running at periodical interval of times for improving performance of
JAVA applications..
- It contains user friendly syntax for developing any applications.
2. Platform Independent
§ Programming languages are present
in the industry before 90 are platform dependent languages.
§ In those languages if any
application is developed targeting O.S who cannot run application on other
operating Systems because once after the compiling the source code of the
program it will generate machine code on which compilation is done.
§ Machine code is prepared targeting
to the O.S because O.S is responsible for an execution of a machine code so
machine code is prepared for one OS cannot be executed on other operating
system.
CPP(WINDOWS)
Source Code èCompileèMachine Code
(.exe)
|
|
·
In the above case as the source code is compile on the windows.
·
Machine code is prepared targeting O.S so that machine code can run only
on windows O.S but not on any other.
§ Any application can setting on
the top of the O.S is dependent on the O.S
§
The
languages like C, Cpp are treated as platform dependent languages since these
languages are taking various amount of memory spaces on various operating
systems [the operating system dos understands everything in the form of its
native format called Mozart
(MZ) whereas the operating system Unix understands everything in its
negative format called
embedded linking format (elf).
§ When we write a C or CPP program on dos operating
and if we try to transfer that program to Unix operating system, we are unable
to execute since the format of these operating systems are different and more
over the C, CPP software does not contain any special programs which converts
one format of one operating system to another format of other operating
system].
Platform Independency
§
We are providing platform independency
both under java and .NET languages
§
In case of these languages whenever
we compiled the source code it converts into intermediate code(semi-finished)
and this intermediate code can be carried and executed on any machine provided
there is a availability a special software which converted intermediate code
into machine code according to the machine where the execution take place.
Java Lang(WINDOWS)
Source CodeèCompileèByte CodeèJVMèMachine Code |