Documenting cold Knowledge in Java

Source: Internet
Author: User

Java Cold knowledge


1. The class of number is not the parent of the class of integer

2. Final static variable The first access will be the class is initialized, and fianl's static constant access does not cause the class to initialize

3. The class application obtained through Class.forName ("OO.OO.A") will initialize the classes, and the application Integer.class get will not initialize the class

4, such son class<number> clazz = Int.class will error and class< Extends Number>clazz = Int.class okay

Documenting cold Knowledge in Java

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.