Statement: The material used in this column is written by the VIP students of the Kay Academy, who has the right to be anonymous and has the final right to interpret the article; The Edith Academy is designed to promote students to learn from each other on the basis of public notes.
Bank Examples:
This is the bank's account:
This is the business in the bank:
Then write a test class test:
Instance Block:
Introduced:
What is an instance block? Instance blocks can be written in a number of cases, executed sequentially, when the new object executes, executes first, and the property initialization values are executed, and the instance block is executed along with the property assignment.
The wording is as follows:
When did the instance block start to load:
1. First ask if the class has loaded
2. Create Object Memory
3. Allocate the attribute memory first, but this time there is no value assigned
4. Then execute the instance block and assignment operations sequentially
5. Execute the constructor
6. Finish creating the Object
Java Fundamentals--bank examples