Created
March 30, 2018 21:11
-
-
Save tlehman/63939315d6a2bd459fbc2f1848a620d0 to your computer and use it in GitHub Desktop.
Java bytecode example
This file contains 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
public class AddTwo { | |
public static void main(String args[]) { | |
int c = add(2,3); | |
} | |
public static int add(int a, int b) { | |
return a + b; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Compile this with
javac AddTwo.java
Then decompile the bytecode with
javap -c AddTwo.class
to get: