//bytecode of <init>
0: aload_0
1: invokespecial java.lang.Object.<init> ()V (8)
4: return
//bytecode of <main>
0: getstatic java.lang.System.out Ljava/io/PrintStream; (16)
3: ldc "Hello World" (22)
5: invokevirtual java.io.PrintStream.println (Ljava/lang/String;)V (24)
8: return
The above is the byte code for :
public class Hi {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
If I have only the byte code, how do I run it? Can I? And what's the extention of the byte code file? Hi.class?
.classfile?