Java - javap command

[Last Updated: May 20, 2018]

Java Tools & Commands Java 

This is java command line tool which comes with JDK.

It disassembles class files and prints a human-readable version of those classes.


A Java class

public class MyClass {
private int i;

public MyClass (int i) {
this.i = i;

public int getI () {
return i;

public static void main (String[] args) {
MyClass m = new MyClass(5);

Let's compile above class and then run javap:


D:\examples>javap MyClass
Compiled from ""
public class MyClass {
public MyClass(int);
public int getI();
public static void main(java.lang.String[]);

See Also