is JVM platform dependent or independent..?

Answers were Sorted based on User's Feedback



is JVM platform dependent or independent..?..

Answer / vamsi

JVM refers Java Virtual Machine. JVM is a program which
will convert byte code instructions into machine language
instructions understandable by Micro processor. Java
program write once, later on run anywhere.

JVM is a system dependent, because it was developed in C
language, where as class file is a system independent.


Sun Microsystems has developed different JVMs for different
operating systems. Hence, you can write a single Java
program and generate the class file which can be executed
on any other operating system.


note# let us know if iam wrong.

Is This Answer Correct ?    126 Yes 13 No

is JVM platform dependent or independent..?..

Answer / sadhi

jvm is a program and it is system dependent. Because every
system differentiate in developing tools and software..
so, the jvm software is convert the class file which is have
byte code into machine code to according to that specific
configuration. Since jvm is depend on the system software
and hardware..

Is This Answer Correct ?    40 Yes 2 No

is JVM platform dependent or independent..?..

Answer / vikrant sharma

JVM refers to Java virtual machine.As you know JVM takes
byte code and convert it into format that is understandable
by microprocessor.Since Every machine has its own JVM like
windows has own JVM, linux has own JVM,Macintosh has
different,etc.This means JVM depends upon Operating system
that means JVM is platform dependent.But that byte code
able to run on any machine that has JVM(JRE)..

Is This Answer Correct ?    20 Yes 0 No

is JVM platform dependent or independent..?..

Answer / bapu

x.java file compiled by compiler.but .class file contains
source code equivalent to byte code.
But the microprocessor cannot understand byte code
instructions,neither can it execute them.Jvm can convert
byte code into machine code.JVM is not a machine-it is a
program.
jvm is system dependent.

Is This Answer Correct ?    12 Yes 1 No

is JVM platform dependent or independent..?..

Answer / ravi

Java "the language" is platform-independent. To make it so,
there is a platform-specific JRE that knows how to run the
platform-independent Java code on a specific platform.

The JVM could be called platform-independent because it
produces the same results running the same Java code on
different platform(). It is however (at least partially)
implemented as a platform-dependent executable.

Is This Answer Correct ?    44 Yes 36 No

is JVM platform dependent or independent..?..

Answer / guest

java is platform independent.

Is This Answer Correct ?    26 Yes 21 No

is JVM platform dependent or independent..?..

Answer / jporter

I very much liked this explanation:

http://www.programmerinterview.com/java/is-jvm-platform-dependent.php

Is This Answer Correct ?    5 Yes 1 No

is JVM platform dependent or independent..?..

Answer / suji

JVM IS A PLATFORM DEPENDENT

Is This Answer Correct ?    4 Yes 3 No

is JVM platform dependent or independent..?..

Answer / megha pandav

We can't directly says that JVM is platform independent but
due to JVM java has become platform independent.Because JVM
convert byte code into the microprocessor readable format.so
that code able to run on any machines like windows,
linux,Macnitosh etc...

Is This Answer Correct ?    4 Yes 8 No

is JVM platform dependent or independent..?..

Answer / kanhaiya sharma

JVM REFERS TO JAVA VERTUAL MACHINE.
MAINLY WORK OF JVM IS THAT CONVERT BYTECODE INTO MACHINE
CODE.

YES,JVM IS PLATEFORM-INDEPENDENT BACAUSE EVERY OS HAVE OWN
PRE-INSTALLED JVM THAT SUPPORTS TO JRE(JAVA RUNTIME
ENVIORMENT)AND JRE RESPONSIBLE FOR PROVIDE RUNTIME
ENVIORMENT TO EVERY OS.

Is This Answer Correct ?    0 Yes 6 No

Post New Answer

More Core Java Interview Questions

What does int [] mean in java?

0 Answers  


Is nullpointerexception checked or unchecked?

0 Answers  


Describe inheritance as applied to java?

4 Answers  


is set interface synchronized by default???

2 Answers   Manhattan,


How we can generate random numbers in java?

0 Answers  






Does list maintain insertion order java?

0 Answers  


where exactly collections are usefull in realtime

2 Answers  


Can size_t be negative?

0 Answers  


Which collection is sorted in java?

0 Answers  


What is the purpose of void class?

0 Answers  


What is the preferred size of a component?

3 Answers   ITSA,


What is the difference between jdk, jre, and jvm?

0 Answers  


Categories