Question: what is the difference between generic and non generic collections in java?
Answer: Non-generic Vs Generic Collection in Java. Programs that uses Generics has got many benefits over non-generic code. Code Reuse: By using Generics, one needs to write a method/class/interface only once and use for any type. Whereas in the non-generics, the code needs to be written again and again whenever needed.