Hi,
Generics as we all know enforce type saftey. But, it is easy to corrupt generics when you mix generics and non-generic types. For example:
List<Car> list = new ArrayList<Car>();
List list2 = new ArrayList();
list2.add("tony");
list = list2;
Car car = list.get(0); // this will throw an exception.
Is there any way you can corrupt generics by mixing one generic type with another generic type, or is that absolutely and always impossible.
Thanks.