What is function of javap command?

2021

What is function of javap command?

  1. A.

    A command for running the Java compiler

  2. B.

    A command that disassembles Java class files

  3. C.

    A command for running a non-optimized version of Java compiler

  4. D.

    A command that is used to generate API-style HTML documentation

Attempted by 133 students.

Show answer & explanation

Correct answer: B

The javap command is part of the Java Development Kit used to disassemble compiled Java class files. It converts bytecode into a human-readable format, allowing developers to inspect the structure of compiled classes without needing source code.

Explore the full course: Up Lt Grade Assistant Teacher 2025