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

String is a immutable objects . it means that string does not change........... But it will be chang......... { String s="kapil"; String s1="raj"; String s=s1; then print(.......) The String has been changed .. how it is possible and why its called immutable objects

7 Answers  


What is ide with example?

0 Answers  


When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?

0 Answers  


What is consumer interface?

0 Answers  


can u handle an error if u write Thowable in the catch class lise try { some errorneous code }catch(Throwable e){ ...}

4 Answers  






What is pojo class in java?

0 Answers  


When is the garbage collection used in Java?

0 Answers   BirlaSoft,


What are namespaces in java?

0 Answers  


Does every java program need a main?

0 Answers  


What do you mean by formatting?

0 Answers  


Can constructor be static or final?

0 Answers  


How is final different from finally and finalize?

0 Answers  


Categories