answersLogoWhite

0


Best Answer

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.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Learn bay

Lvl 8
2y ago

Yes, in the sense that it is implemented for a specific platform, a JVM is often platform dependent. The benefit of having a JVM is that, at least in theory, it makes Java programming platform agnostic, allowing the same code to run on any platform without modification.

To learn more about data science please visit- Learnbay.co

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

Yes as long as the machine has a Java Virtual Machine for it. Most do.

This answer is:
User Avatar

User Avatar

NHope

Lvl 4
4y ago

I would say it undependently dependant. Java (the language itself) is independent of platforms. But the JVM (which compiles, etc. source code written in Java) is dependent on the platform use.

This answer is:
User Avatar

User Avatar

NHope

Lvl 4
4y ago

I would say it independently dependant. Java (the language itself) is independent of platforms. But the JVM (which compiles, etc. source code written in Java) is dependent on the platform use.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can java run on any machine?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is needed to run java?

You must have the Java Run-time Environment installed on your computer. Steps: 1. Open Command Prompt 2. Enter the command: javac class.java 3. Enter the command: java <classfilename> (without the .java or .class extension) The javac command will compile your java source file and create a class file. The java command will execute or run your java class file.


Why is java virtual machine required?

That's because that's the way Java is designed. Java programs are compiled to be run on a special program that interprets it - the Java Virtual Machine. The reason it is designed this way is because it allows Java programs to run on just about any computer - despite the fact that different computers have different sets of machine instructions. It is well possible to write programs that run without requiring support of specific programs - but such programs will only run on specific computers.


What is the primary benefit of byte code?

The whole idea of Java - or one of the ideas, at any rate - is that it can be run anywhere. So, instead of compiling for a specific processor, the Java compiler compiles for a "generic processor", called the Java Virtual Machine. The code thus generated is called "bytecode". It can be interpreted (i.e., run) by a Java Virtual machine, these are available on different platforms.The whole idea of Java - or one of the ideas, at any rate - is that it can be run anywhere. So, instead of compiling for a specific processor, the Java compiler compiles for a "generic processor", called the Java Virtual Machine. The code thus generated is called "bytecode". It can be interpreted (i.e., run) by a Java Virtual machine, these are available on different platforms.The whole idea of Java - or one of the ideas, at any rate - is that it can be run anywhere. So, instead of compiling for a specific processor, the Java compiler compiles for a "generic processor", called the Java Virtual Machine. The code thus generated is called "bytecode". It can be interpreted (i.e., run) by a Java Virtual machine, these are available on different platforms.The whole idea of Java - or one of the ideas, at any rate - is that it can be run anywhere. So, instead of compiling for a specific processor, the Java compiler compiles for a "generic processor", called the Java Virtual Machine. The code thus generated is called "bytecode". It can be interpreted (i.e., run) by a Java Virtual machine, these are available on different platforms.


Java is both compiled and interpreted language meaning?

Instead of compiling to machine language, the Java compiler compiles for a "ficticious processor". A program called the Java Virtual Machine then interprets this on every machine. Note that Java is NOT an interpreted language. It is solely a compiled language. Java source code is always run through a compiler (typically 'javac') to be turned into bytecode. This is identical behavior as any other compiled language. The confusion is that Java bytecode is usually run on a Java Virtual Machine, which itself may both act as an interpreter and a compiler for the native instruction set the JVM runs on. However, the Java language itself is NOT dependent on how this bytecode is run - in fact, it is possible (and has been done) to build a hardware machine that runs Java bytecode directly.


Is java fully platform independent?

Java is a platform independent language.After compiling the ".java" file ,that will be converting into the ".class" file,which is a byte code having the capability run on any OS.Basing on the concept byte code java achieving the platform independent,it leads to "Write once run anywhere".

Related questions

What is needed to run java?

You must have the Java Run-time Environment installed on your computer. Steps: 1. Open Command Prompt 2. Enter the command: javac class.java 3. Enter the command: java <classfilename> (without the .java or .class extension) The javac command will compile your java source file and create a class file. The java command will execute or run your java class file.


Why is java virtual machine required?

That's because that's the way Java is designed. Java programs are compiled to be run on a special program that interprets it - the Java Virtual Machine. The reason it is designed this way is because it allows Java programs to run on just about any computer - despite the fact that different computers have different sets of machine instructions. It is well possible to write programs that run without requiring support of specific programs - but such programs will only run on specific computers.


What happens if you uninstall java virtual machine?

You will no longer be able to run Java programs.


Why does Minecraft need java?

Basically, any program developed with the Java programming language requires Java to be installed on the user's machine. The advantage of doing this is that such a program can run on a large variety of machines.


What is byte code and native code?

native code is machine code each machine has its won set of istruction one machine's native code won't run on another While bytecode is what java produces and it can run on any machine. when we run bytecode it first get to compile to machine code and then get to run.


What is the primary benefit of byte code?

The whole idea of Java - or one of the ideas, at any rate - is that it can be run anywhere. So, instead of compiling for a specific processor, the Java compiler compiles for a "generic processor", called the Java Virtual Machine. The code thus generated is called "bytecode". It can be interpreted (i.e., run) by a Java Virtual machine, these are available on different platforms.The whole idea of Java - or one of the ideas, at any rate - is that it can be run anywhere. So, instead of compiling for a specific processor, the Java compiler compiles for a "generic processor", called the Java Virtual Machine. The code thus generated is called "bytecode". It can be interpreted (i.e., run) by a Java Virtual machine, these are available on different platforms.The whole idea of Java - or one of the ideas, at any rate - is that it can be run anywhere. So, instead of compiling for a specific processor, the Java compiler compiles for a "generic processor", called the Java Virtual Machine. The code thus generated is called "bytecode". It can be interpreted (i.e., run) by a Java Virtual machine, these are available on different platforms.The whole idea of Java - or one of the ideas, at any rate - is that it can be run anywhere. So, instead of compiling for a specific processor, the Java compiler compiles for a "generic processor", called the Java Virtual Machine. The code thus generated is called "bytecode". It can be interpreted (i.e., run) by a Java Virtual machine, these are available on different platforms.


Java is both compiled and interpreted language meaning?

Instead of compiling to machine language, the Java compiler compiles for a "ficticious processor". A program called the Java Virtual Machine then interprets this on every machine. Note that Java is NOT an interpreted language. It is solely a compiled language. Java source code is always run through a compiler (typically 'javac') to be turned into bytecode. This is identical behavior as any other compiled language. The confusion is that Java bytecode is usually run on a Java Virtual Machine, which itself may both act as an interpreter and a compiler for the native instruction set the JVM runs on. However, the Java language itself is NOT dependent on how this bytecode is run - in fact, it is possible (and has been done) to build a hardware machine that runs Java bytecode directly.


What will be if java program is being shifted from 64 bit machine to 32 bit machine?

A Java program should run on any platform (hardware + operating system) for which a JVM (Java Virtual Machine) is installed. Unlike the "C" language, the size of data items in Java does not depend on the platform; for example, an int will always have a size of 32 bits, no matter how the underlying computer hardware is organized.A Java program should run on any platform (hardware + operating system) for which a JVM (Java Virtual Machine) is installed. Unlike the "C" language, the size of data items in Java does not depend on the platform; for example, an int will always have a size of 32 bits, no matter how the underlying computer hardware is organized.A Java program should run on any platform (hardware + operating system) for which a JVM (Java Virtual Machine) is installed. Unlike the "C" language, the size of data items in Java does not depend on the platform; for example, an int will always have a size of 32 bits, no matter how the underlying computer hardware is organized.A Java program should run on any platform (hardware + operating system) for which a JVM (Java Virtual Machine) is installed. Unlike the "C" language, the size of data items in Java does not depend on the platform; for example, an int will always have a size of 32 bits, no matter how the underlying computer hardware is organized.


Is java fully platform independent?

Java is a platform independent language.After compiling the ".java" file ,that will be converting into the ".class" file,which is a byte code having the capability run on any OS.Basing on the concept byte code java achieving the platform independent,it leads to "Write once run anywhere".


Is it possible to run java program without JVM?

No. Java programs run in the Java Virtual Machine (JVM) - without it your computer won't know how to handle Java bytecode.


Which brands of laptops can run JAVA?

Any computer (desktop or laptop) can run Java.


Platform independent languages?

That refers to programming languages, and specifically to languages that run on many different platforms. An example is Java, which runs on any machine and operating system that has a special program (the JVM, Java Virtual Machine) designed for that "platform".