LanguageJavaQueueInterfaceOn this pageQueue InterfaceBasicsAlways insert or delete from one end or anotheroperation is always O(1), for both enqueue and dequeueSub-Interface: DequeDeque implements QueueDifference:Queue is one side in, one side outDeque can enqueue/dequeue at both sides