Sunday, December 11, 2011

What is the use of javap command in java?

javap is the tool provided by the java language which was bundled with JDK software. This tool  (javap is located in JAVA_HOME\bin location) which is used by many Java developers to find the different member variables and methods for any Java object.


javap options classes
classes - single or multiple classes Options there are command line options to control configurations.
Options Description
-help command line usage information
-v version information
-public Displays only public class and members
-protected Displays only public and protected class and members
-package Displays all class and members in a package
-constants Displays constants
-classpath path to find the classes
-sysinfo Displays information like size, date and hash
javap command in java

We can also use -c options to with javap command to compile the source code and display the information about the object

Related article

1 comments so far

Good post I appriciate ..!