What are the Uses of Reflection in Java ?

Reflection is often used in Testing, Debugging and in Integrated Development Environment (IDE).

Reflection allows you to write programs that do not have to "know" everything at compile time. It makes programs more dynamic, since they can be tied together at runtime.

Many modern frameworks like Spring etc. use Reflection. Some modern languages like Python etc. also use Reflection.

JAVA API for XMLParsing (JAXP) also uses Reflection.



You May Interest

What is the Use of Run Time Polymorphism in Java ?

What is the Main Difference Between a Session and Cookie in JSP ?

How Can We Reference an Unreferenced Object Again in Java ?

How Strategy Design Pattern is Different From State Design Patter ...

How Can We Improve the Performance of IdentityHashMap in Java ?