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
Write a program to reverse a number in java?
What is the meaning of I ++ in java?
Is space a char?
What is a dot notation?
What is the benefit of abstract class?
Can we catch more than one exception in single catch block?
when to use ArrayList and when to use HashMap in webApplication.
What is subsequence of a string?
When should we create our own custom exception classes?
What does || mean in code?
What are the problems faced by java programmers who don't use layout managers?
What is a flag variable?
Can we override constructors in java?
Explain the inheritance?
What is the difference between char and char *?