Chapter 25. java.lang.reflect
This chapter provides a quick reference for the interfaces and classes in java.lang.reflect. The application programming interfaces (APIs) in this package are used to determine information about a class for which you have no class definition. Reflection would be most suitable for tools such as class browsers, GUI builders, and debuggers. You can use Reflection to find the name of a class, its fields, interfaces, methods, constructors, arrays, and modifiers. You can also use APIs in this package to execute methods or change the values of the data members of a class. This includes arrays. See Chapter 13, "Reflection," to learn how to use them.
Tip
You may find it more efficient to use the Introspection mechanism in ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access