In-depth understanding of Java virtual machine - how to view java compiled .class files

1. The download address of the .class file viewing tool (Binary Viewer) is as follows:

Link: https://pan.baidu.com/s/14qV-vAfVVbv8vNlj3E4DxQ
Extraction code: vn0p

2. Binary Viewer installation and Chinese configuration

1. After decompressing the installation steps, install it by fool. Skip this installation step. . . .
2. Chinese configuration
1) Open the installed Binary Viewer, as shown below:
Insert image description here2) Click [Tools]->[Select Language]->[Chinese] in sequence, as shown in the picture below, the menu names and other options are displayed in Chinese:
Insert image description here

3. Example Demonstration

1. Write a file in .java format, as shown below:
Insert image description here
2. Compile the .java file through the dos window command, as shown below:
Insert image description here
3. A .class file with the same name as the .java file will be generated, as shown below:
Insert image description here
4. Open Binary Viewer tool, click [File] -> [Open File] -> [Select the generated .class file], as shown below:
Insert image description here

Guess you like

Origin blog.csdn.net/li1325169021/article/details/107087958