Call add() method for addition of the elements to Queue. This is an inherited type of method of Collection interface.
Different elements are added to a Queue which is explained by this given code.
In a Queue, added elements get stored in internal order and they are dependent upon implementation.
Java Code: This is the code to explain add operation in Java Queue
Queue myQueue = new LinkedList();