Are these two code snippets are totally same? Is there any difference?
public static void printList(List<?> list) {
for (Object elem: list)
System.out.print(elem + " ");
}
public static void printList(List list) {
for (Object elem: list)
System.out.print(elem + " ");
}