Principles that Java method invocation procedures follow
1 First Java class files, calls to all methods are recorded through symbolic constants.
The relevant content can be obtained through the analysis of class file
2 Find the corresponding method in the corresponding class according to the static type of the variables and the static types of the parameters.
Find the best method based on the rules of overload overload,
If the method is found to be a static method, a final method, or a private method, remember that the address of this method ends.
If not, it is possible to override the subclass, which corresponds to the class of the actual type of the variable based on the signature of the method
To find the corresponding method by querying the order of the parent class in the first query subclass.
Summarize
Implemented using static multiple allocations plus dynamic single dispatch.