MathWorks interview question

Why Java is generic?