• Post Reply Bookmark Topic Watch Topic
  • New Topic

Use of reflection API  RSS feed

 
Ranch Hand
Posts: 148
Hibernate Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Currently I am reading about the Reflection API in java.So I have one query regarding the use of Reflection APIs.
I read that reflection is meant for the "introspection" of a java beans.Is this the only use of Reflection?

If not,will you please enlist some of the practical use of the java Reflection API,other than getting the info about the class ie method,constructors etc.

Thanks
 
author & internet detective
Marshal
Posts: 38391
649
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Calling a method dynamically. This is useful in tooling, when you don't know the method signature at compile time.
 
Aaaaaand ... we're on the march. Stylin. Get with it tiny ad.
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!