I have an Interface whose implementation is deciding at Runtime and is given a Proxy Object as its dynamic implementation. I want to retrieve the Interface which this proxy object implements to know the methods in the interface. Is there any way I can do so in Java.
Share
Try this (using plain reflection):
For the following code:
It correctly return
java.io.Serializableinterface.