10 Reasons We Need Java 3.0
Subject:   Another thing
Date:   2002-08-06 09:04:16
From:   st0rm
We don't need generics anymore, if everything is an Object.
Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • Another thing
    2002-08-06 10:25:54  devextreme [View]

    With generics, an ArrayList could be checked at compile time to use only objects of type Foo. There would be no cast necessary (and of course no ClassCastExceptions) as with Objects.