上午在 StackOverflow 上提了个问题,过了三个小时就被关闭了...
How does Java reflection works? [closed]
As we know, we can use Java API to get class, method, parameters, etc.
Through the package java.lang.reflect I found some native method about reflection, I really wonder what does Java do for implementing it?
One of my conjectures was: When JVM loading a class, it will create an instance for this Class and, it can be reached when the reflection is invoked.
没有给出关闭的理由,有点好奇是提问的方式不对吗?同时这个问题想听听大手子的回答。