Java Static and final keywords
Static keyword: You can modify the property, you can also decorate the method, and you can use it to decorate the class.
Static Modifier property: Regardless of how many objects a class generates, all of these objects work together to use a unique static member variable, and one object modifies that static member variable, and the value of that static member variable for the other object changes as well. If a member variable is static, then we can use it in the same way as the class name. Member variable name (recommended in this way).
Static Modification Method: The method of static modification is called a stationary method. For static methods, you can use the class name. Method name to access it.
Instance method: An instance method in a subclass and an instance method in the parent class, with the same signature, the subclass method will override the parent class's method.
Class method: If a subclass defines a static method that has the same signature as the parent class, the method hides the static method of the parent class in the subclass.
Subclasses do not override static methods of the parent class, but are hidden.
Official information:
Https://docs.oracle.com/javase/tutorial/java/IandI/override.html
The important differences between hiding a static method and overriding an instance method are as follows:
1). Overriding an instance method call is a method in a subclass;
2). The call to hide a static method depends on whether the call comes from the parent class or the child class.
Static methods can only inherit and cannot be overridden (override).
Java Records -17-static and final keywords