Skip Top Navigation Bar

Reflection and Method Handles

This section covers the two APIs available to introspect objects at runtime: the Reflection API and Method Handles.

  1. Introduction to Java Reflection

    Java reflection allows an object to look in the mirror and discover what fields, methods, and constructors it has. We can read and write fields, invoke methods, and even create new objects by calling the constructors.

  2. The Reflection API

    Let us deep dive in to the Reflection API, and see how you can use it to examine or modify the runtime behavior of applications running in the Java Virtual Machine.

  3. Introduction to Method Handles

    Method handles, how they are different from the Reflection API, and the tooling they provide.