top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is Java Reflection API? Why it’s so important to have?

0 votes
357 views
What is Java Reflection API? Why it’s so important to have?
posted Aug 14, 2017 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Reflection in Java is a very powerful concept and it’s of little use in normal programming but it’s the backbone for most of the Java, J2EE frameworks. Some of the frameworks that use java reflection are:

JUnit – uses reflection to parse @Test annotation to get the test methods and then invoke it.
Spring – dependency injection, read more at Spring Dependency Injection
Tomcat web container to forward the request to correct module by parsing their web.xml files and request URI.
Eclipse auto completion of method names
Struts
Hibernate

answer Aug 21, 2017 by Sonali Gupta
...