Java bytecode Method table and property sheet

Source: Internet
Author: User

Continue to follow the last "https://www.cnblogs.com/webor2006/p/9502507.html" of the 10 represents the byte analysis of code, as follows:

And these bytes actually correspond to the information that it is:

So the question is, ALOAD_0 is not mnemonic information, how can you correspond with the bytes in the byte-code file? The so-called mnemonic is actually to help us to remember the match, in fact, the bottom is also corresponding to a hexadecimal number, the other aload_0 corresponds to 2A this hexadecimal number, why so say? Because there are jclasslib such a good tool can help us to correspond, put the mouse on the mnemonic found is a can point link, as follows:

Click on the "Aload_0" to find out the link to Oracle's official online instructions, as follows:

So the first byte has already been parsed, and it is true that it corresponds to the mnemonic, and then the second byte is parsed:

And the second mnemonic in Jsclasslib is "Invokespecial", click on the link to the official website to see:

And its function can be understood to be called the method of the parent class, and this mnemonic is parameter:

In fact, the next two bytes are the corresponding parameters of this mnemonic, as follows:

The corresponding constant pool is:

This is the construction method, as shown in Jsclasslib:

10

Java bytecode Method table and property sheet

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.