Multiple choice

Which of the following methods creates a proxy class, defined in the specified class loader and implements the specified interface?

  1. Protected proxy(InvocationHandler ih)

  2. Temporary intercession

  3. Public static object newProxyInstance(ClassLoader loader, class[] interfaces, InvocationHandler ih)

  4. Public object invoke(Object proxy, Method method, Object[] args)

  5. Proxy instance

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This method creates a proxy class, defined in the specified loader and implements the specified interface.