I\'m starting to learn Generics
for Java
and I read several tutorials, but I\'m a bit confused and not sure how a generic method is declared.
If you have a requirement in your method where you need to return type is depends on your method parameter at that time you can write angle bracket before method signature as shown in your example, In short, as word suggest Generic is used for feature where same class or utility required to be used for multiple type of objects