answersLogoWhite

0

What is use of javap command?

Updated: 12/14/2022
User Avatar

Wiki User

10y ago

Best Answer

The javap command is used to disassemble 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.

For example: javap java.lang.String dumps all the methods for the String class.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is use of javap command?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you compile and execute Java program in which we find the highest of any five numbers?

In the same way as you would compile and execute any other Java program. Compile: use the "javac" command. Or use the built-in "compile" command in your favorite IDE. Execute: Use the "java" command. Or use the built-in "run" command in your favorite IDE.


How can i see all the classes and interfaces present in a predefined package in java in command prompt?

use the jar command like this: jar tvf mypackage.jar


How do you send commands to a command-line EXE program from a batch?

Just put the commands in your batch file. When someone runs the program, it will execute the commands it comes across line-by-line. - Example Batch Script: This script will run an application EXE file with command line parameters. This will use the shutdown.exe file that comes with windows. It shuts down the computer in 60 seconds. @shutdown -s -t 60 - You could also use the START command. For any command or exe file that runs from the command line, you could open a command prompt and type the name of the file followed by /? to find out what you can use as command parameters. Example: START /?


What is the difference between the put and the mput?

Both will operate same but i recommend you that if there is only single file use "PUT" and if there are multiple files then you can use "MPUT"...... if there is only single file and if we use MPUT command thgen it will bit slower than PUT command.


What command would you use to locate occurrences of a particular character string in files?

grep