List<Object> lo = ls; lo.add(0, new Object()); // legal?! ls.get(0); // Not a string?! Generics and Subtyping (II). Compile error as it is not type safe!
確定! 回上一頁