1.Generics Collections2. Why do we need Generics? Another method of software re-use. When we implement an algorithm, we want to re-use it for differenttypes . Example:We…