Developer community
0 votes
41 views
asked by Expert (15k points) 15 23 32 | 41 views

1 Answer

0 votes
The javap command displays information about the methods, variables, and parameters present in a class file.

The output of the javap tool depends on the options used. If you do not specify any options while using the javap tool, the javap tool prints the package, protected, and public fields and methods of the classes passed to the tool.

The syntax to use the javap tool is:

javap [options] class. . .
Option           Description
-help             Displays a help message for the javap tool.
public           Shows only the public classes and members.
protected     Shows only the public and protected classes and members.
private          Shows all classes and members.
package       Shows the package, protected, and public classes and members.

                      This is the default option of the javap tool.
-classpath
path              Specifies the class path that javap should use to locate the class file to disassemble.
answered by Geek (15.3k points) 19 43 69

Related questions

0 votes
1 answer
asked by felin Advisor (8.4k points) 10 15 18 | 11 views
0 votes
1 answer
asked by rock Expert (15k points) 15 23 32 | 1.4k views
0 votes
1 answer
asked by smith Geek (15.3k points) 19 43 69 | 13 views
0 votes
1 answer
asked by smith Geek (15.3k points) 19 43 69 | 1.4k views
0 votes
1 answer
asked by rock Expert (15k points) 15 23 32 | 1.5k views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

3,754 questions
4,046 answers
117 comments
10,709 users