when we use type argument
ex: ArrayList<
String> in this we cannot add
objects other than String ..
but the below code runs without compilation error
here although i restrict ArrayList only to Animal..
compiler allows both cat and Dog objects
then where the type safety goes?