Home » JAVA Programming » Data Structures » Question
  1. What are the use of front and rear pointers in CircularQueue implementation?
    1. Rear pointer points to first element; front pointer points to the last element
    2. Front pointer points to the first element; rear pointer points to null object
    3. Front pointer points to first element; rear pointer points to the last element
    4. Front and read pointers point to the first element
    5. None of these
Correct Option: D

CircularQueue implementation is an abstract class where first and rear pointer point to the same object.



Your comments will be displayed only after manual approval.