Using Reflection, you can call the Class.getInterfaces() method which returns the Array of Interfaces that your class implements.
list.getClass().getInterfaces()[0];
To get only the name
list.getClass().getInterfaces()[0].getSimpleName();
source share