What does “p” in “javap” stand for?

2019-03-09 05:30发布

What does "p" in "javap" stand for? (The "c" in "javac" stands for compiler)

标签: javap
6条回答
淡お忘
2楼-- · 2019-03-09 05:40

javap 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. The javap command prints its output to stdout.

查看更多
淡お忘
3楼-- · 2019-03-09 05:44

It prints the methods declarations in your class and its a very good way to see the how your compiler has interpreted your code and convert your source file into .class format.

查看更多
smile是对你的礼貌
4楼-- · 2019-03-09 05:50

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

查看更多
别忘想泡老子
5楼-- · 2019-03-09 05:57

it stands for java printer....

查看更多
smile是对你的礼貌
6楼-- · 2019-03-09 06:03

It lists all the methods and variable the specified class contains. You just need to paas the class name with javap command on command-line. e.g. C:\jdk1.3\bin> javap java.lang.Object it will list all the methods Object class contains.

查看更多
兄弟一词,经得起流年.
7楼-- · 2019-03-09 06:05

The javap command disassembles one or more class files. Its output depends on the options used. If no options are used, javap prints out the package, protected, and public fields and methods of the classes passed to it. javap prints its output to stdout.

查看更多
登录 后发表回答