how we can say java is platform independent, while we
require JVM for that particular Operating System?

Answers were Sorted based on User's Feedback



how we can say java is platform independent, while we require JVM for that particular Operating Sy..

Answer / 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

how we can say java is platform independent, while we require JVM for that particular Operating Sy..

Answer / gayatri

Because every os has its own jvm

Is This Answer Correct ?    5 Yes 1 No

how we can say java is platform independent, while we require JVM for that particular Operating Sy..

Answer / seema choudhary

Java is platform independent b'caz java compiler convert the source file into the Byte code or object code file then JVM(Java Virtual Machine) convert the file into the machine language.
object code file will execute on another machine or any platform by using the JVM.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More C Interview Questions

Explain how can I prevent another program from modifying part of a file that I am modifying?

0 Answers  


In c programming, explain how do you insert quote characters (? And ?) Into the output screen?

0 Answers  


write a program that print itself even if the source file is deleted?

2 Answers  


Explain the difference between structs and unions in c?

0 Answers  


simple c program for 12345 convert 54321 with out using string

7 Answers   TCS,






Hai,I have done with my bachelor of commerce and planing to ms,please suggest me how to convince vo for shifting from commerce to computers. Visa on 8 DEC 2014  Npu university

0 Answers  


What is the difference between a free-standing and a hosted environment?

0 Answers   Aspire,


enum day = { jan = 1 ,feb=4, april, may} what is the value of may? a)4 b)5 c)6 d)11 e)none of the above

8 Answers   HCL, Wipro,


What is static identifier?

0 Answers   TCS,


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

0 Answers  


void main() { int x=25,y=32; clrscr(); x=x++ + y++; y=++x + ++y; printf("%d%d",x,y); }

5 Answers  


what is a c-language.what is do.

4 Answers   HCL,


Categories