this code compiles fine and when executed produce "004b" how that happen why it do not produce an classcastException.
public static void append(List list) {
list.add("004b");
}
public static void main(String[] args) {
List<Integer> intList = new ArrayList<Integer>();
append(intList);
System.out.println(intList.get(0));
}