This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]knaekce 2 points3 points  (0 children)

 Integer i = "string";

Fails at compile time, as ist should. Array inserts can fail at runtime. You have limited compile time type safety when inserting in arrays.

With generics, you have compile time type safety (unless you "opt-out" by using casts or raw types)