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

When Do You Use Exception or Error in Java ?

What is the Difference Between a Cookie and a Session Object in J ...

How Will You Create a Shallow Copy of a Map in Java ?

What is the Use of Interceptor Design Pattern in Java ?

What are the Differences Between Internal and External Iterator i ...