Java - 二进制代码与字节码相同吗?

Java - Is binary code the same as ByteCode?(Java - 二进制代码与字节码相同吗?)
本文介绍了Java - 二进制代码与字节码相同吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

在Java中,二进制代码"和Java字节码"的意思一样吗?

In Java, does "binary code" means the same as "Java bytecode?"

这是 Java 中的流程吗?

Is this the flow in Java ?

Java 文件 (.java) -> [javac] ->字节码文件 (.class) -> [JVM/Java解释器] -> 运行它(首先将其转换为二进制代码特定于机器)

Java File (.java) -> [javac] -> ByteCode File (.class) -> [JVM/Java Interpreter] -> Running it(by first converting it into binary code specific to the machine)

谢谢!

推荐答案

答案取决于你所说的二进制代码是什么意思.

The answer depends on what you mean by binary code.

Java 字节码 是一种二进制数据格式,包括 Java 虚拟机的加载信息和执行指令.从这个意义上说,Java 字节码是一种特殊的二进制代码.

Java bytecode is a binary data format that includes loading information and execution instructions for the Java virtual machine. In that sense, Java bytecode is a special kind of binary code.

当您使用术语二进制代码"来表示真实处理器架构(如 IA-32 或 Sparc)的机器指令时,情况就不同了.
Java 字节码 不是那种意义上的二进制代码.它不是特定于处理器的.

When you use the term "binary code" to mean machine instructions for a real processors architecture (like IA-32 or Sparc) then it is different.
Java bytecode is not a binary code in that sense. It is not processor-specific.

这篇关于Java - 二进制代码与字节码相同吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

Android schema validation(Android 架构验证)
Required Multiple beans of same type in Spring(Spring中需要多个相同类型的bean)
How to deal with JAXB ComplexType with MixedContent data?(如何处理带有 MixedContent 数据的 JAXB ComplexType?)
Validate an XML File Against Multiple Schema Definitions(针对多个模式定义验证 XML 文件)
JAXB - Property quot;Valuequot; is already defined. Use lt;jaxb:propertygt; to resolve this conflict(JAXB - 属性“值;已经定义了.使用 lt;jaxb:propertygt;解决这个冲突)
XML instance generation from XML schema (xsd)(从 XML 模式 (xsd) 生成 XML 实例)