Multiple choice

Which of the following methods returns true if and only if the specified class was dynamically generated to a proxy class using the getProxyClass() method?

  1. Public static boolean inProxyClass(Class c)

  2. Protected proxy(InvocationHandler ih)

  3. Function proxy

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

  5. Proxy object

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

This method returns true if and only if the specified class was dynamically generated to a proxy class using the getProxyClass() method.