問題描述
在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 - 二進制代碼與字節碼相同嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!