previous | start | next

## Invoking a Method

- Supply implicit parameter (`null` for static methods)
- Supply array of explicit parameter values
- Wrap primitive types
- Unwrap primitive return value
- Example: Call `System.out.println("Hello, World")` the hard way.

      Method m = PrintStream.class.getDeclaredMethod(
         "println", String.class);
      m.invoke(System.out, "Hello, World!");

- `invoke` is a varargs method

previous | start | next