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
List some basic data types in c?
What is the use of define in c?
Define the scope of static variables.
What is pointer in c?
#include
Can we initialize extern variable in c?
What is string function in c?
What is scope of variable in c?
I heard that you have to include stdio.h before calling printf. Why?
How does sizeof know array size?
What does #pragma once mean?
Explain what is a static function?
plz let me know how to become a telecom protocol tester. thank you.
What is pointer to pointer in c language?
What is anagram in c?