218k views
4 votes
A unique aspect of Java that allows code compiled on one machine to be executed on a machine of a different hardware platform is Java's

2 Answers

6 votes

Answer:

Java's bytecode

Step-by-step explanation:

To execute its operations, java programming languages uses bytecodes.

These bytecodes are literally instructions of a java virtual machine (or JVM). They are generated in form of a class file as soon as the java program is ran and executed. In other words, the java compiler compiles the code and generates the bytecode.

As soon as the bytecode is generated, it can be transferred to a different machine and platform completely and one can run this bytecode on this different machine.

User Tomasz Szulc
by
4.0k points
4 votes

Answer:

Java's bytecode

Step-by-step explanation:

To execute its operations, java programming languages uses bytecodes.

These bytecodes are literally instructions of a java virtual machine (or JVM). They are generated in form of a class file as soon as the java program is ran and executed. In other words, the java compiler compiles the code and generates the bytecode.

As soon as the bytecode is generated, it can be transferred to a different machine and platform completely and one can run this bytecode on this different machine.

User Bobsr
by
4.3k points