Mega Code Archive

 
Categories / Java Tutorial / Language
 

The javap Tool

The javap command displays information about the methods, variables, and parameters present in a class file. The output of the javap tool depends on the options used. If you do not specify any options while using the jap tool, the javap tool prints the package, protected, and public fields and methods of the classes passed to the tool. The syntax to use the javap tool is: javap [options] class. . . OptionDescription -helpDisplays a help message for the javap tool. publicShows only the public classes and members. protectedShows only the public and protected classes and members. privateShows all classes and members. packageShows the package, protected, and public classes and members. This is the default option of the javap tool. -classpath pathSpecifies the class path that javap should use to locate the class file to disassemble.