Y
All rights reserved. 2012 (c) ZeroTurnaround OÜ
javap
We will start with a class that will serve as an entry point for our example application, the moving average calculator.
public class Main {
public static void main(String[] args){
MovingAverage app = new MovingAverage();
}
}
The result is as follows:
Compiled from "Main.java"
public class algo.Main {
public algo.Main();
Code:
0: aload_0
1: invokespecial #1 // Method java/lang/Object."<init>":()V
4: return
public static void main(java.lang.String[]);
Code:
0: new #2 // class algo/MovingAverage
3: dup
4: invokespecial #3 // Method algo/MovingAverage."<init>":()V
7: astore_1
8: return
}