Home > Back-end > Public static <T> T getbean (Class <T> CLZ)
Public static <T> T getbean (Class <T> CLZ)
Time:09-30
Why do I get rid of the method parameter of generics, public static & lt; T> T getbean (Class CLZ), why is the return value is the object type, parameters and why don't have to write a generic
CodePudding user response:
Returns the generics, incoming should also be generics, you even if the parameter is not generic, but you return to have a problem for certain,