javap tool in Java with Examples

javap tool

The javap tool is used to get the information of any class or interface. The javap command (also known as the Java Disassembler) disassembles one or more class files. Its output depends on the options used (“-c” or “-verbose” for byte code and byte code along with innards info, respectively). If no options are used, javap prints out the package, protected, and public fields and methods of the classes passed to it.

javap [option] [classname]

When no options are used:

javap class_name


When Options are used:

The description and implementation of options are given below:
Note: Some options prints very long output which can’t be shown completely. Please try in your System to view the complete output of options used.