is JVM platform dependent or independent..?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
What is return null in java?
How listener identify that the event came from a particular object?
Difference between final and effectively final ? Why is effectively final even required ?
how many access specifiers are available in java
Can we have 2 main methods in java class?
what is synchronization
Real Time sample code for Encapsulation and Abstraction. where to use abstract and where to use specifies like public private.
Why is java architectural neutral?
do I need to use synchronized on setvalue(int)? : Java thread
Explain polymorphism citing an example.
Which is dependent variable?
Is there a jre for java 11?