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: 10398
- 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.
Who is online
Users browsing this forum: No registered users and 9 guests