javap—The Java Disassembler

The Java disassembler is used to disassemble Java bytecode that has already been compiled. After disassembling the code, information about the member variables and methods is printed. The syntax for the Java disassembler is

javap <options> <classes>

Multiple classes can be disassembled. Use a single space to separate each class. The options available for the disassembler are shown in Table B.3.

Table B.3. javap Options
Option Description
-c Disassembles the source file and displays the bytecodes produced by the compiler.
-l Prints the local variable tables.
-public Shows only public classes and members.
-protected Shows protected and public classes and members.
-package Prints out private, protected, and public member ...

Get Special Edition Using Java 2 Standard Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.