TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Java Tutorials

The Javap Utility – Java Class File Disassembler

Overview

The javap is a utility program that provides us with information on Java .class files. It is a Java class file disassembler that dissembles Java bytecode. We can use the utility to disassemble one or more .class files.

Java source code is compiled into machine-independent bytecode .class files. The javac Java compiler compiles *.java source code to *.class bytecode files. Java Bytecode is interpreted by machine-specific JVMs.

javap Utility

The javap tool is used to verify the profile of the class or interface. By default, the internal details of the class or interface will be displayed on the console window. The tool is usually found under the bin directory of the JDK home directory.

On Windows

%JAVA_HOME%\bin

To know all the supported flags:

\> javap –help

Java Class File Disassembler

The -c command-line switch will disassemble the Java Bytecode.

Tool Usage

The general syntax of the tool is shown below:

\> javap <fully_qualified_name_of_the_class/interface>

\> javap Hello.class

If no command line switches are used, javap prints out the variables and methods of the class file.

To disassemble the bytecode, use the -c command line switch:

\>javap -c Hello.class

Example

For example, to know the internal details of the System class, we can use the following command:

\> javap java.lang.System

—

Java Tutorials

Java Tutorial on this website:

https://www.testingdocs.com/java-tutorial/

For more information on Java, visit the official website :

https://www.oracle.com/java/

Related Posts

Download Greenfoot Windows

Java Tutorials /

Download & Install Greenfoot on Windows

Java Tutorials /

Java Static Code Analysis

Java Tutorials /

Java Testing Tools

Java Tutorials /

Handle Multiple Exceptions in Java

Exceptions_In_Java

Java Tutorials /

Exceptions in Java Programs

‹ Terminate a Java Application› JConsole – Java Monitoring & Management Console

Recent Posts

  • MS Access Data Types
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version