Java · Medium · ProWhat are generics in Java? Explain type erasure and why it was introduced.JavaCore Java