I have read in here that Java's Queue pop in O(1).
We know that push and pop are constant time operations [O(1) to be precise (Do you know why?)].
What I don't Understand is - how? If it's a linked list then it can't be O(1) because it has to save the last item. If it's a doubly linked list then it can. But is it a doubly linked list?