Note that the type of array that is created is dynamic, and does not have to be known at compile time.
Summary
Java reflection is useful because it supports dynamic retrieva l of information about classes and data structures by name, and allows for their manipulation within an executing Java program. This feature is extremely powerful and has no equivalent in other conventional languages such as C, C++, Fortran, or Pascal.
作者:沉默是金