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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.