What are Generics(JAVA PROGRAMMING GUIDE)

Lets start why generics is needed rather than identifying what generics really are. Through the use of generics one can create classes,interfaces and methods and specify what kind of data it is working upon. Lets…