Question on generics

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
Student
Posts: 53
Joined: Fri Sep 20, 2013 7:20 am
Contact:

Question on generics

Post 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.
Last edited by admin on Tue Sep 24, 2013 8:33 am, edited 1 time in total.
Reason: removed qid reference from title

admin
Site Admin
Posts: 10398
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post 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.

Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests