1. Dynamic languages, languages whose structure can be changed during operation, such as JavaScript, PHP, and Python.
For example, new functions, objects, and code can be introduced, existing functions can be deleted, or other structural changes can be made. Generally speaking, runtime code can change its own construction based on conditions.
Main dynamic languages: Objective-C, C#, JavaScript, PHP, Python, etc.
static language
2. Corresponding to dynamic languages, languages whose structure does not change during runtime are static languages.
For example Java, c, C+.
Java is not a dynamic language, but Java can be called a quasi-dynamic language. In other words, Java has a certain degree of dynamics and can use the reflection mechanism to obtain characteristics similar to dynamic languages. The dynamics of Java make programming more flexible.
The above is a comparison of Java dynamic and static languages. I hope it will be helpful to everyone.