the code I have is:
interfacebase<T>
interfaceA extends interface<A> ---> interfaceAImpl implements interfaceA
interfaceB extends interface<B> ---> interfaceBImpl implements interfaceB
interfaceA AObj = interfaceAImpl()
interfaceB BObj = interfaceBImpl()
my question is : can java store AObj and BObj in a List or a Map ?
if java can, then how to achieve that
The following should work, without loosing all type information.