how we can say java is platform independent, while we
require JVM for that particular Operating System?
Answer Posted / nagarjuna reddy
Because of JVM java became platform independent.after
creating object file,the object file is given to JVM which
consists of 200 instructions called "byte code instructions".
JVM will convert the object file instructions into machine
code instructions that are understandable to particular
processor on which instructions have to be executed.so jvm
converting the instructions depending upon the Os &
processor,but java compiler will not creating an object file
depending upon the current processor.
so this object file will execute at any where irrespective
of the processor or operating system.
so we can say that JVM is platform dependent,why because it
has to create machinecode inst's of that(current) processor
or OS.
Java is platform independent, why because object file
created by java compiler will execute on any platform
because of JVM.
| Is This Answer Correct ? | 22 Yes | 2 No |
Post New Answer View All Answers
Explain what is the use of a semicolon (;) at the end of every program statement?
Is there any possibility to create customized header file with c programming language?
Write the test cases for checking a variable having value in range -10.0 to +10.0?
How will you delete a node in DLL?
What is the difference between declaring a variable and defining a variable?
What are structural members?
What is string function in c?
What is an identifier?
When is a null pointer used?
What is c programing language?
How can I determine whether a machines byte order is big-endian or little-endian?
How to declare pointer variables?
I was asked to write a program in c which when executed displays how many no.of clients are connected to the server.
What is page thrashing?
Are c and c++ the same?