About Question com.enthuware.ets.scjp.v6.2.82 :
Posted: Sun Feb 16, 2014 8:58 am
Didn't see the need of a generic while answering the question.
I thought that you had to choose for linkedList because also an add-method was used. Thought that add only was available with list-interface implementations and not with queue.
So I did some checking and found that queue-implementations also have an add method.
Maybe nice to mention in the explanation.
Also the explanation is talking about getRequestForProcessing(). This has to be getRequestToProcess().
I thought that you had to choose for linkedList because also an add-method was used. Thought that add only was available with list-interface implementations and not with queue.
So I did some checking and found that queue-implementations also have an add method.
Maybe nice to mention in the explanation.
Also the explanation is talking about getRequestForProcessing(). This has to be getRequestToProcess().