Which statement about the Queue interface in Java is correct?

Last Updated :
Discuss
Comments

Which statement about the Queue interface in Java is correct?


Queue allows duplicate elements but does not allow null


Queue follows LIFO (Last In, First Out) order

Queue is an implementation of Deque


Queue follows FIFO (First In, First Out) order


Share your thoughts in the comments