Last active
May 27, 2023 15:05
-
-
Save YujiSoftware/9fef6bf6abd22e0cec6b32ea0d1151c8 to your computer and use it in GitHub Desktop.
javap -v Main.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Classfile /home/yuji/repos/gist/jjug_ccc_2023/sample/com/example/Main.class | |
Last modified 2023/05/28; size 426 bytes | |
SHA-256 checksum 2887486397f85a098cd8908463d9499351497938089eafc72988a5cbaf4b55e0 | |
Compiled from "Main.java" | |
public class com.example.Main | |
minor version: 0 | |
major version: 64 | |
flags: (0x0021) ACC_PUBLIC, ACC_SUPER | |
this_class: #21 // com/example/Main | |
super_class: #2 // java/lang/Object | |
interfaces: 0, fields: 0, methods: 2, attributes: 1 | |
Constant pool: | |
#1 = Methodref #2.#3 // java/lang/Object."<init>":()V | |
#2 = Class #4 // java/lang/Object | |
#3 = NameAndType #5:#6 // "<init>":()V | |
#4 = Utf8 java/lang/Object | |
#5 = Utf8 <init> | |
#6 = Utf8 ()V | |
#7 = Fieldref #8.#9 // java/lang/System.out:Ljava/io/PrintStream; | |
#8 = Class #10 // java/lang/System | |
#9 = NameAndType #11:#12 // out:Ljava/io/PrintStream; | |
#10 = Utf8 java/lang/System | |
#11 = Utf8 out | |
#12 = Utf8 Ljava/io/PrintStream; | |
#13 = String #14 // Hello world. | |
#14 = Utf8 Hello world. | |
#15 = Methodref #16.#17 // java/io/PrintStream.println:(Ljava/lang/String;)V | |
#16 = Class #18 // java/io/PrintStream | |
#17 = NameAndType #19:#20 // println:(Ljava/lang/String;)V | |
#18 = Utf8 java/io/PrintStream | |
#19 = Utf8 println | |
#20 = Utf8 (Ljava/lang/String;)V | |
#21 = Class #22 // com/example/Main | |
#22 = Utf8 com/example/Main | |
#23 = Utf8 Code | |
#24 = Utf8 LineNumberTable | |
#25 = Utf8 main | |
#26 = Utf8 ([Ljava/lang/String;)V | |
#27 = Utf8 SourceFile | |
#28 = Utf8 Main.java | |
{ | |
public com.example.Main(); | |
descriptor: ()V | |
flags: (0x0001) ACC_PUBLIC | |
Code: | |
stack=1, locals=1, args_size=1 | |
0: aload_0 | |
1: invokespecial #1 // Method java/lang/Object."<init>":()V | |
4: return | |
LineNumberTable: | |
line 3: 0 | |
public static void main(java.lang.String[]); | |
descriptor: ([Ljava/lang/String;)V | |
flags: (0x0009) ACC_PUBLIC, ACC_STATIC | |
Code: | |
stack=2, locals=1, args_size=1 | |
0: getstatic #7 // Field java/lang/System.out:Ljava/io/PrintStream; | |
3: ldc #13 // String Hello world. | |
5: invokevirtual #15 // Method java/io/PrintStream.println:(Ljava/lang/String;)V | |
8: return | |
LineNumberTable: | |
line 5: 0 | |
line 6: 8 | |
} | |
SourceFile: "Main.java" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example; | |
public class Main { | |
public static void main(String[] args) { | |
System.out.println("Hello world."); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment