previous | start | next

## Getting A Single Method Descriptor

- Supply method name
- Supply array of parameter types
- Example: Get `Rectangle.contains(int, int)`:

      Method m = Rectangle.class.getDeclaredMethod(
         "contains", int.class, int.class);

- Example: Get default `Rectangle` constructor:

      Constructor c = Rectangle.class.getDeclaredConstructor();

- `getDeclaredMethod`, `getDeclaredConstructor` are varargs methods

previous | start | next