Java programming ideas fourth edition Chapter 14 type information summary

1. Class object:

1. The class loader first checks whether the class object of this class has been loaded. If it is not already loaded, the default class loader looks for it by class name Class file.

2. When the bytecode of this class is loaded, they will receive verification to ensure that it is not damaged. And does not contain bad codes. This is one of the measures used for security purposes in Java.

3. Once a class is loaded, it will be used to create all objects of this class.

The following example illustrates the following two points:

1. When is the class loaded

2. How to load

2. Class literal constant

  Toy. class

3. Generalized class reference

4. Reflection

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>