java interface for the queue adt is given in code fragment this generic interface specifies that objects of arbitrary object types can be inserted into the queue thuswe don' have to use explicit casting when removing elements note that the size and isempty methods have the same meaning as their counterparts in the stack adt these two methodsas well as the front methodare known as accessor methodsfor they return value and do not change the contents of the data structure code fragment interface queue documented with comments in javadoc style