when there is a need of jvm then how we can say that java
is a platform independent language?

Answers were Sorted based on User's Feedback



when there is a need of jvm then how we can say that java is a platform independent language?..

Answer / vatsal doshi

JVM is actually a virtual machine, which operates at one level of abstraction above the actual platform.

Platform = OS + Underlying Hardware

Now, Java compiled code(byte code) is targetted to run on JVM, independent of underlying actual platform.

So, Java code written on windows can be directly run on linux/mac/solaris, without recompilation, provided JVM is installed in the target machine.

We have different implementations of JVM for different platforms. The advantage is that though JVM is platform dependent, but the compiled code now becomes platform independent.

Is This Answer Correct ?    17 Yes 0 No

when there is a need of jvm then how we can say that java is a platform independent language?..

Answer / bala

each OS has its own configuration for external resources
like connecting to a network accessing external memory, RMI
etc, so each OS has its own JVM to achieve this...

Is This Answer Correct ?    0 Yes 2 No

when there is a need of jvm then how we can say that java is a platform independent language?..

Answer / venkat

jvm is used to convert into an machinery language

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More Core Java Interview Questions

can write code for serialization ?

1 Answers   HCL, MegaSoft,


What is primitive array?

0 Answers  


java can provide security ,how can provide?

8 Answers   Aspire, BNP Paribas, Genpact, IBM,


Are private methods final?

0 Answers  


Is 'null' a keyword?

8 Answers  






What will happen if we write code like: try{}catch(exception e)catch(IOException i)

6 Answers   CTS, TCS,


Name the methods that used to get and set the text label displayed by a Buttonobject?

1 Answers  


Is empty string in java?

0 Answers  


In java, how we can disallow serialization of variables?

0 Answers  


What are different ways of object creation in java ?

0 Answers  


How many bytes is a character?

1 Answers  


Can private method static?

0 Answers  


Categories