answersLogoWhite

0


Best Answer

The idea is that, once you have a JVM available for a platform, the same Java program works on different computers. This is unlike many other programming languages, which need to be recompiled for different platforms, or perhaps don't work even if recompiled, due to platform-specific differences.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: JVM is platform dependent then why JAVA is platform independent?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is Java is platform dependent or independent?

Java is not machine dependent. High-level Java source code is compiled against the JVM which produces Java byte code, the lower-level native language of the JVM. At runtime, the JVM interprets the byte code to produce the required machine-dependent code. Every platform that supports Java has its own JVM, thus the same byte code can execute upon any supported platform. The translation from byte code to machine-dependent code is handled solely by the platform JVM.


Why is Java not 100 percent platform independent?

AnswerJava is platform independent while JVM is platform dependent. In Java ,you can compile code in to class file and you can run it in any OS without altering your code.But for interpreting class to bytes we need JVM .so it act as a bridge between your class file and OS. Now a days JVM is available for all OS.So Java attains platform independent.AnswerDepending on your definitions, no language may be truly platform independent. A language like Java needs a virtual machine to run the platform independent bytecode. But this virtual machine must run natively on a given physical machine, which means that the JVM in platform dependent. If someone tells you that Java is not completely platform independent, this is probably what they are referring to.


Why JVM is platform independent?

by creating a jre spesific to each platform programmers can confidently write code in any platform and assume it willl also work in aany other. theirfore java is platform independent as bytecode would look the same on any platform, however will be implemented by a diffrent interpreter for each platform.


Why java is called platform independent not operating system independent?

A "platform" is whatever environment in which Java is running. This includes operating systems. A Java source file on compilation produces an intermediary .class rather than a executable file. This .class file is interpreted by the JVM. Since JVM acts as an intermediary layer.


Is Jvm in the system?

The JVM (Java Virtual Machine) is a part of the JRE (Java Runtime Environment).The JRE is comprised of the JVM and the Class Library.The JVM takes the java language and compiles it into Bytecode which can then be interpreted as machine code by the platform(OS). The JVM will compile byte code specific to the OS it is being deployed upon. The JVM allows the Java language to be platform independent.


Can java run on any machine?

Yes, since it can only play in some computers and not all computers can read it. Every Java application needs a minimum system configuration requirement which if not met, the machine will not be able to run Java. Java the language itself is NOT machine dependent. To run a program written in Java, it depends on an implementation of the Java Virtual Machine specification existing for a given machine/OS platform. Thus, a program written in Java can be run on any OS/machine platform for which a JVM has been created.


Why java called platform indeependent?

Platform independent language means once compiled you can execute the program on any platform (OS). Java is platform independent. Because the Java compiler converts the source code to bytecode, which is Intermidiate Language. Bytecode can be executed on any platform (OS) using JVM( Java Virtual Machine).


Why java is platform independent explain by diagram?

Java is a platform independent language becoz of the bytecode magic of java. In java, when we execute the source code...it generates the .class file comprising the bytecodes. Bytecodes are easily interpreted by JVM which is available with every type of OS we install.


What are the two Java platform components?

Jvm & api


Who makes java platform independent?

JVM makes Java Platform Independent.. It loads byte code(.class file) and Run it.


How java platform independent with complete architecture?

java is platform independent because java code is compile on javac compiler after create one class file this file is run any of paltform run this code becauase jvm is understand this code properly managed. jatin patel


What is the need of java virtual machine when operating system is already present?

1.Java virtual machine is required to interpret .class files. 2.JVM makes the java as platform independent.