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
Why is a singleton bad?
What is a class reference?
Explain the private protected method modifier?
What is bool mean?
Why java is considered dynamic?
What is a byte string?
What do you mean by of string::valueof expression in java 8?
What is meant by vector class, dictionary class, hash table class, and property class?
What is encapsulation in java?
How will you compute size of a structure?
Does A Class Inherit The Constructors Of Its Superclass?
What are the two ways to create a thread?
Explain about sets?
What are the application of stack?
How do you insert a line break?