posted 16 years ago
Hi,
I think what you are saying is not correct.
Because according to non generic code you can put any kind of objects in a list. when you are trying to compare it through you will get the output with out having any exception provided the objects you are putting in the list are implements comparable interface.Otherwise you will get ClassCastException.