+ 1

Why java is called platform independent while it need jvm for running their byte code.?

who java is platform independent..? while it need jvm for running their byte code

6th Feb 2017, 3:10 PM
Aditya Sharma
Aditya Sharma - avatar
8 Réponses
+ 9
Yes but for any programming language or to make any code you need some software in your system.And for java you need JVM. Platform independent doesn't mean you don't need a software to run it.
6th Feb 2017, 5:48 PM
Ashita Gupta
Ashita Gupta - avatar
+ 5
Java is platform independent because it can be run on any system. Once you create a code in java in your system, you can view it on any other system.Code create in some IDE can be edited or viewed on any other IDE. This feature of java makes it platform independent.
6th Feb 2017, 3:18 PM
Ashita Gupta
Ashita Gupta - avatar
+ 4
In Java you can execute any compiled code on any platform that's why it is platform independent.It doesn't imply that you don't need a software to run it
6th Feb 2017, 6:13 PM
sushmita kumari
sushmita kumari - avatar
+ 4
Java and JVM are two different things. Java is a programming language, whereas, JVM is a computing machine which is used to translate(execute) any Java program into Java Bytecode. The reason for Java being architecture neutral is JVM. JVM, on the other hand, is written "specifically" for a platform (like Windows, Linux etc.). * Bear in mind that JVM is not even written in Java, that's why, it's not platform independent. *
16th Feb 2017, 5:01 AM
Kashiful Haque
Kashiful Haque - avatar
+ 4
Java is platform independent language because Java program compiled code can run in all operating systems..... compiler is responsible to convert Java source code into byte code and JVM is execute these bytecodes by converting them into the ML of current OS...
16th Feb 2017, 1:09 PM
Swati Singh
Swati Singh - avatar
0
bt for this java required JVM in system.
6th Feb 2017, 3:25 PM
Aditya Sharma
Aditya Sharma - avatar
0
jvm is a part of java ...java is platform independent it can run anywhere
3rd Mar 2017, 6:12 AM
Shashank Pandey
0
Java is platform independent while it requires jvm to run as it is said jvm is designed for all leading platforms (OS) so if we write a code once we can execute the code on any machine provided you should have jvm. So java is also said "Write Once Execute Anywhere". Java also compiled the code and if it run on one machine it would run on other platforms too unlike other languages
21st Oct 2018, 7:32 AM
Ishu Kumar
Ishu Kumar - avatar