Java: What scenarios call for the use of reflection?

前端 未结 7 1122
无人共我
无人共我 2020-12-29 10:42

So from reading some of the articles, the message i got out of it was being able to modify fields and set values to classes in real time without recompiling.

so is i

7条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-29 11:13

    One other case developing IDEs like eclipse/netbeans etc., to determine which methods in an abstract class need to be implemented by a child class, and automatically write the missing method calls for you (one example).

提交回复
热议问题