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

How can I return multiple values from a function?

6 Answers  


AMMONG THE 4 STROAGE CLASSES IN C, WHICH ONE FASTEST?

13 Answers   HCL,


2. What does static variable mean?

2 Answers  


1)what is the error in the following stmt where str is a char array and the stmt is supposed to traverse through the whole character string str? for(i=0;str[i];i++) a)There is no error. b)There shud be no ; after the stmt. c)The cond shud be str[i]!='\0' d)The cond shud be str[i]!=NULL e)i shud be initialized to 1

4 Answers  


Is c call by value?

0 Answers  


How #define works?

0 Answers  


Why Modern OS are interrupt driven?Give an example

3 Answers  


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

1 Answers   Mind Tree,


How many levels of indirection in pointers can you have in a single declaration?

0 Answers   Agilent, ZS Associates,


Differentiate between full, complete & perfect binary trees.

0 Answers  


write a c program to find largest number in matrix(in each row,each column, diagonally, and in the whole matrix)? Its urgent.

2 Answers  


WHAT IS FLOAT?

3 Answers  


Categories