Static modified variables and methods belong to the class, allocating space in memory when the class is loaded;
Call can be called directly through the class name, when the object is changed by creating a static variable, then the static variable is changed;
Static methods cannot directly access non-static member variables and methods, and can be accessed by creating objects, whereas non-static member variables can access static variables and methods;
You can assign values to member variables through constructors, initialization blocks, and static initialization blocks, as opposed to constructors and initialization blocks that are executed once when an object is not created, and the initialization block executes before the constructor, and the static code block executes only once;
Java static variable, method static initialization block