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 lookup tables in c?
Do pointers store the address of value or the actual value of a variable?
Can the “if” function be used in comparing strings?
What is a pragma?
What is the explanation for the dangling pointer in c?
What does the function toupper() do?
Distinguish between actual and formal arguments.
What does %p mean?
What does 2n 4c mean?
What is difference between static and global variable in c?
what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above
Do you know the purpose of 'register' keyword?
What is the difference between %d and %i?
What is clrscr in c?
By using C language input a date into it and if it is right?