Java class file format:修订间差异
imported>Soleverlee 以“Java文件编译成class字节码后,其结构如下: 600px Category:Programe”为内容创建页面 |
小 Riguz移动页面Java:class文件结构至Java class file format,不留重定向 |
||
(未显示2个用户的6个中间版本) | |||
第1行: | 第1行: | ||
Java文件编译成class字节码后,其结构如下: | Java文件编译成class字节码后,其结构如下: | ||
[[Image:Jvm_class_format.png| | [[Image:Jvm_class_format.png|400px]] | ||
[[Category: | Java的类型描述: | ||
<syntaxhighlight lang="java"> | |||
//Java type Type descriptor | |||
boolean Z | |||
char C | |||
byte B | |||
short S | |||
int I | |||
float F | |||
long J | |||
double D | |||
Object Ljava/lang/Object; | |||
int[] [I | |||
Object[][] [[Ljava/lang/Object; | |||
//Method declaration in source file Method descriptor | |||
void m(int i, float f) (IF)V | |||
int m(Object o) (Ljava/lang/Object;)I | |||
int[] m(int i, String s) (ILjava/lang/String;)[I | |||
Object m(int[] i) ([I)Ljava/lang/Object; | |||
</syntaxhighlight> | |||
[[Category:JVM]] |
2024年3月20日 (三) 03:23的最新版本
Java文件编译成class字节码后,其结构如下:
Java的类型描述:
//Java type Type descriptor
boolean Z
char C
byte B
short S
int I
float F
long J
double D
Object Ljava/lang/Object;
int[] [I
Object[][] [[Ljava/lang/Object;
//Method declaration in source file Method descriptor
void m(int i, float f) (IF)V
int m(Object o) (Ljava/lang/Object;)I
int[] m(int i, String s) (ILjava/lang/String;)[I
Object m(int[] i) ([I)Ljava/lang/Object;