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
What are header files why are they important?
Explain the difference between exit() and _exit() function?
What is the use of gets and puts?
What is the use of volatile?
How can I change the size of the dynamically allocated array?
Can i use “int” data type to store the value 32768? Why?
What is wrong with this code?
Why do we use int main instead of void main in c?
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
Define the scope of static variables.
Why isn't any of this standardized in c? Any real program has to do some of these things.
What is meant by type specifiers?
typedef enum { html, java, javascript, perl, cgi } lang;The above statement defines a : a) Union b) User defined type c) Enumerated variable d) none
What do header files do?
Explain how can you check to see whether a symbol is defined?