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


Please Help Members By Posting Answers For Below Questions

what is a constant pointer in C

674


What are the types of assignment statements?

626


Can a variable be both const and volatile?

669


write a c program for swapping two strings using pointer

2090


Describe the difference between = and == symbols in c programming?

773






Do pointers store the address of value or the actual value of a variable?

606


Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?

562


Explain how do you determine whether to use a stream function or a low-level function?

619


What is an lvalue in c?

690


can we implement multi-threads in c.

657


How are Structure passing and returning implemented by the complier?

710


State the difference between realloc and free.

627


In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none

714


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.

3498


What are the standard predefined macros?

628