Skip to content

Instantly share code, notes, and snippets.

@jponge
Created November 12, 2012 14:26
Show Gist options
  • Save jponge/4059710 to your computer and use it in GitHub Desktop.
Save jponge/4059710 to your computer and use it in GitHub Desktop.
Bytecode quizz
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
}
public abstract class SomeClass {
public abstract void doThis();
}
public interface SomeInterface {
void doThat();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment