How Java is Platform Independent
A program or technology is said to be platform independent if and only if which can run onall available operating systems.
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].
The language like JAVA will have a common data types and the common memory spaces on
all operating systems and the JAVA software contains the special programs which converts the
format of one operating system to another format of other operating system. Hence JAVA
language is treated as platform independent language.
JAVA language is also treated as server independent language since the server side program
can run on any of the server which is available in the real world (web server or application
server). JAVA can retrieve or store the data in any one of the data base product which is
available in rest world irrespective of their vendors (developers) hence JAVA language is product
independent language.
In order to deal with server side program from the client side, we can use C language client
program, Cpp client program, DOT NET client program, etc. hence JAVA language is a simple,
platform independent, server independent, data base/product independent and language
independent programming language
0 comments:
Post a Comment