Page 1 of 1

Question on generics

Posted: Mon Sep 23, 2013 2:58 pm
by Student
Hi,
This is all really confusing.
Is the following summary correct? It certainly would be easier to remember if so:

"If you declare a Collection or Map reference type variable using the wildcard operator you cannot add elements/entries to the object that is referenced by the variable."

Is that correct?
Thanks.

Re: About Question enthuware.ocpjp.v7.2.1300 :

Posted: Tue Sep 24, 2013 8:32 am
by admin
No, that is not correct. It is a lot too complicated to put in one sentence. You have to read it from a book multiple times to understand it.

HTH,
Paul.