Java introspection and reflection
问题 Can any one explain the use of Java reflection and introspection? When we need to use both? 回答1: Reflection (taken from oracle java tutorial) Reflection is commonly used by programs which require the ability to examine or modify the runtime behavior of applications running in the Java virtual machine. This is a relatively advanced feature and should be used only by developers who have a strong grasp of the fundamentals of the language. With that caveat in mind, reflection is a powerful