javap tool in Java with Examples Last Updated : 10 May, 2019 Comments Improve Suggest changes Like Article Like Report javap tool The javap tool is used to get the information of any class or interface. The javap command (also known as the Java Disassembler) disassembles one or more class files. Its output depends on the options used (“-c” or “-verbose” for byte code and byte code along with innards info, respectively). If no options are used, javap prints out the package, protected, and public fields and methods of the classes passed to it. Syntax: javap [option] [classname] When no options are used: Syntax: javap class_name Output: When Options are used: The description and implementation of options are given below: Note: Some options prints very long output which can't be shown completely. Please try in your System to view the complete output of options used. -help or --help or -? : This option prints a help message for the javap command. Syntax: javap -help Output: -version : This option prints Version information of java. Syntax: javap -version Output: -v or -verbose : This option Prints additional information like stack size, number of locals and arguments for methods. Syntax: javap -v class_name Output: -l : This option prints line number and local variable tables. Syntax: javap -l class_name Output: -public : This option prints only public classes and members. Syntax: javap -public class_name Output: -protected : This option prints protected/public classes and members. Syntax: javap -protected class_name Output: -package : This option prints package/protected/public classes and members (default). Syntax: javap -package class_name Output: -c : This option prints Disassembled code. Syntax: javap -c class_name Output: -s : This option prints internal type signatures. Syntax: javap -s class_name Output: -sysinfo : This option prints system info (path, size, date, MD5 hash) of class being processed. Syntax: javap -sysinfo class_name Output: -constants : This option prints final constants of class. Syntax: javap -constants class_name Output: References: https://docs.oracle.com/javase/8/docs/technotes/tools/windows/javap.html Comment More infoAdvertise with us Next Article javap tool in Java with Examples R Rajnis09 Follow Improve Article Tags : Java java-advanced Practice Tags : Java Similar Reads Nashorn JavaScript Engine in Java with Examples Nashorn: Nashorn is a JavaScript engine which is introduced in JDK 8. With the help of Nashorn, we can execute JavaScript code at Java Virtual Machine. Nashorn is introduced in JDK 8 to replace existing JavaScript engine i.e. Rhino. Nashorn is far better than Rhino in term of performance. The uses o 4 min read Java Native Interface with Example In the Programming World, it is often seen in the comparison of Java vs C/C++. Although the comparison doesn't make any such sense, as both the languages have their Pros and Cons, but what if we can use multiple languages in a single Program?In this article, we will learn How to use JNI(Java Native 4 min read Java Swing | JList with examples JList is part of Java Swing package . JList is a component that displays a set of Objects and allows the user to select one or more items . JList inherits JComponent class. JList is a easy way to display an array of Vectors .Constructor for JList are : JList(): creates an empty blank listJList(E [ ] 4 min read Java Relational Operators with Examples Operators constitute the basic building block to any programming language. Java too provides many types of operators which can be used according to the need to perform various calculations and functions, be it logical, arithmetic, relational, etc. They are classified based on the functionality they 10 min read Java 9 Features with Examples Java is a general-purpose, high-level programming language developed by Sun Microsystems. It is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible. Java was meant to follow the "Write Once Run Anywhere" (WORA) principle, i.e., J 6 min read Like