I'm a little confused as I'm reading the following in the lab:

Line #9, #10, #11: As we have learned in Exercise 2, when you create
an instance of an ArrayList<E> class, you also specify a type
argument ... to tell the compiler that the ArrayList is only to be
used to hold objects of a particular type or sub-type of it.  In other
words, ArrayList<Object> can hold objects of Object type or sub-type
of it.

Is this really true? Can ArrayList<Object> hold sub-types of Object?

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to