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 is a constant pointer in C
What are the types of assignment statements?
Can a variable be both const and volatile?
write a c program for swapping two strings using pointer
Describe the difference between = and == symbols in c programming?
Do pointers store the address of value or the actual value of a variable?
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
Explain how do you determine whether to use a stream function or a low-level function?
What is an lvalue in c?
can we implement multi-threads in c.
How are Structure passing and returning implemented by the complier?
State the difference between realloc and free.
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
What are the standard predefined macros?