How java is platform independent?
Answer Posted / abc
Platform Independence means a program can run on any OS and
h/w architecture.
To achieve this, JAVA adapted d concept of byte code, that
is converted from source code, n this byte code can be
executed on any machine in d world.
To clearly understand, lets take C compiler as an exaple.
In C, the source code can be compiled in differnt OS like
Windows, DOS, Linux, etc. by using differnt compilers for
differnt OS ,BUT in migrating from one OS to other, the OS
added some features of its own n d result would be little
bit or even completely changed , e.g., if we
use "graphics.h" in C, it will not run on Win7....
thus C is'nt platform independent.
n Remind that Platform Independence also includes that, a
program can run on any H/W architecture i.e. on any
processor...
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Difference between a class and an object?
Is arraylist dynamic in java?
Does java allow default arguments?
What are the default and parameterized constructors?
what are Hostile Applets?
What is difference between length and length() method in java ?
What is the difference between logical data independence and physical data independence?
What are the pillars of java?
Which list does not allow duplicates in java?
What is array length in java?
Which object oriented concept is achieved by using overloading and overriding?
What is this () in java?
What are autoboxing and unboxing? When does it occur?
What's the purpose of using break in each case of switch statement?
What is prime number in java?