Can you tell me something about type safety?

Mixing up types can result in crashesFor type safety reasons, ArrayLists can be restricted to a typeThe compiler always makes sure that we don't mix up typesArrayLists can't store multiple types

Perfect! Without a type restriction, ArrayLists take any object, which can lead to crashes. That's why it's smart to restrict ArrayLists to a single type.

Oh noes! Without a type restriction, ArrayLists take any object, which can lead to crashes. That's why it's smart to restrict ArrayLists to a single type.