JVM method translate to bytecode

来自WHY42
Riguz讨论 | 贡献2021年4月20日 (二) 01:57的版本 (建立內容為「= 构造函数 = <syntaxhighlight lang="java"> </syntaxhighlight> = statements = == 创建对象== <syntaxhighlight lang="java"> HelloWorld s = new HelloWorld(…」的新頁面)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

构造函数

statements

创建对象

HelloWorld s = new HelloWorld();
new           #5                  // class HelloWorld
dup
invokespecial #6                  // Method "<init>":()V