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
What is appletviewer?
Difference between error and exception
State the merge-sort principle and its time complexity.
What are the practical benefits, if any, of importing a specific class rather than an entire package (e.g. Import java.net.* Versus import java.net.socket)?
take an array with -ve and +ve value both.find out the nearest value of 0(zero).if two values are same like(-2 and +2)then extract +2 is nearest of 0(zero).
What is a package in java? List down various advantages of packages.
What is implicit object in java?
What is polymorphism in java? What are the kinds of polymorphism?
Define how does a try statement determine which catch clause should be used to handle an exception?
What is abstraction in java?
Can a abstract class be declared final?
When object is created and destroyed?
What is java lang object?
Difference between serialization and deserialization in java?
What happens if I remove static from main method?