About Question enthuware.ocpjp.v7.2.1171 :
Moderator: admin
-
- Posts: 53
- Joined: Fri Sep 20, 2013 7:20 am
- Contact:
About Question enthuware.ocpjp.v7.2.1171 :
What's wrong with a Queue? Isn't that an interface that allows non-unique objects in the order of insertion?
-
- Site Admin
- Posts: 10065
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1171 :
I guess an argument can be made for Queue as well but Queue does not stipulate anything about the uniqueness of its elements. It depends on the implementation. You could have a valid Queue implementation that doesn't allow non unique elements.
While List API specifically says that it allows non unique elements.
HTH,
Paul.
While List API specifically says that it allows non unique elements.
HTH,
Paul.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: Google [Bot] and 228 guests