This page topics close

javap tool is use to see the information of any class or interface . The javap command disassembles a class file. The javap command displays information about the fields,constructors and methods present in a class file.

  • Syntax to use javap tool

    Let's see how to use javap tool or command.


    Syntax

    javap fullyqualified_class_name


    Example to use javap tool

    javap java.lang.Object  

    Output:
        Compiled from "Object.java"  
        public class java.lang.Object {  
          public java.lang.Object();  
          public final native java.lang.Class getClass();  
          public native int hashCode();  
          public boolean equals(java.lang.Object);  
          protected native java.lang.Object clone() throws java.lang.CloneNotSupportedException;  
          public java.lang.String toString();  
          public final native void notify();  
          public final native void notifyAll();  
          public final native void wait(long) throws java.lang.InterruptedException;  
          public final void wait(long, int) throws java.lang.InterruptedException;  
          public final void wait() throws java.lang.InterruptedException;  
          protected void finalize() throws java.lang.Throwable;  
          static {};  
        }  

What next?

The next topic is Java Reflection API

Share this page