What does "p" in "javap" stand for? (The "c" in "javac" stands for compiler)
Using javap with our classes -public – Shows only public classes and members. -protected – Shows only protected and public classes and members. -package – Shows only package, protected, and public classes and members. -p – Shows all classes and members. -Jflag – Pass flag directly to the runtime system.
You must have your $JAVA_HOME/bin directory added to system PATH for javap command to be available without it's absolute path. Save this answer. Show activity on this post. Assuming you are on Windows, check in your environment variable PATH whether path to Java executables is set.
"javap" has been included in JDK installation since JDK 1.0. And it is represented by the %java_home%\bin\javap.exe program file. where "options" is a list of options and "classnames" is a list of Java class names.
By default, javap
prints declarations of the non-private members of each of the classes specified on the command line
Reference : http://docstore.mik.ua/orelly/java/javanut/ch16_08.htm
p
= printjavap
is part of the official Java tools and allows to disassemble one or more class files.
The "p" in this case stands for print, as in the official documentation is reported that:
... the
javap
command prints the package, protected and public fields, and methods of the classes passed to it. Thejavap
command prints its output to stdout.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With