Difference between static compilation and dynamic compilation

Static compilation : Determine the type at compile time, bind the object, ie pass. 

Dynamic compilation : determine the type at runtime, bind the object.

Dynamic compilation maximizes the flexibility of java, reflects the application of polymorphism, and reduces the coupling between classes.   

Reflection in java is the use of dynamic compilation to create objects.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326664594&siteId=291194637