Created
November 12, 2012 14:26
-
-
Save jponge/4059710 to your computer and use it in GitHub Desktop.
Bytecode quizz
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
public class Foo extends SomeClass implements SomeInterface { | |
public static void main(java.lang.String[]); | |
Code: | |
0: new #2 // class Foo | |
3: dup | |
4: invokespecial #12 // Method "<init>":()V | |
7: return | |
public Foo(); | |
Code: | |
0: aload_0 | |
1: invokespecial #13 // Method SomeClass."<init>":()V | |
4: return | |
} |
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
public abstract class SomeClass { | |
public abstract void doThis(); | |
} |
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
public interface SomeInterface { | |
void doThat(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment