Java 7: Reading Notes on core technologies and best practices-java source code and byte code operations, java 7 Best Practices

Source: Internet
Author: User

Java 7: Reading Notes on core technologies and best practices-java source code and byte code operations, java 7 Best Practices

General process: developers write the java source code (. java)-> javac (compiler)-> java byte code (. class)-> java Virtual Machine (jvm) to run.

I. byte code format

1. byte code representation of common java source code

  • Package name: com. java. sample-> com/java/sample
  • Basic types: byte, char, double, float, int, long, boolean-> B, C, D, F, I, J, S, Z
  • Reference Type: uniform use of "L" prefix and ";" suffix, such as: java. lang. String-> Ljava/lang/String;
  • Array type: prefix "[", for example, double []-> [D
  • Empty type: void-> V
  • Method: int calculate (String str)-> type descriptor of the method: (Ljava/lang/String;) I. The signature information of the method must also be included.

2. Basic Format

 

Related Article

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.