---restore content starts---
I. Reserve Knowledge:
1. Memory structure analysis;
The 2.main method is a thread;
3.run () is the normal way to create threads, at which point the thread has not yet entered the ready state;
The role of the 4.start () method is to turn the process into a ready state;
5. There are two ways of creating a thread:
(1) Direct implementation of the Runnable interface, the interface only a run () method, run () write the method you want to execute;
(2) Inherit the thread class, rewrite the Run method, where the thread class has implemented the Runnablel interface;
In the actual programming is still proposed to implement the interface, because the class is a single inheritance, interface is multi-inheritance;
---restore content ends---
When you look at the code, consider the location of the variable in memory:
1. Memory Analysis:
Basic Java Knowledge