About 113,000 results
Open links in new tab
  1. Queue (Java Platform SE 8 ) - Oracle Help Center

    The Queue interface does not define the blocking queue methods, which are common in concurrent programming. These methods, which wait for elements to appear or for space to become available, …

  2. Java | Queue | size() | Codecademy

    Oct 30, 2025 · In Java, size() method returns the number of elements currently present in a collection like a queue, helping determine how many items are stored at any given moment.

  3. Queue Interface In Java - GeeksforGeeks

    Oct 26, 2025 · LinkedList: A FIFO queue that allows null elements and implements both Queue and Deque interfaces. ArrayDeque: A resizable array-based queue that is faster than LinkedList and …

  4. Size-limited queue that holds last N elements in Java

    A min-max priority queue can be configured with a maximum size. If so, each time the size of the queue exceeds that value, the queue automatically removes its greatest element according to its …

  5. Fixed Size Queue Implementations in Java - Baeldung

    Jan 27, 2024 · Learn what fixed-size queues Java has to offer and how to create a new implementation.

  6. Java Size-Limited Queue: Implementing a Fixed-Size Queue to Hold …

    Jan 3, 2026 · In this blog, we’ll learn how to implement a size-limited queue from scratch in Java. We’ll use a **circular buffer** (array-based) for efficiency, ensuring O (1) time complexity for core …

  7. Java Queue - Queue Methods, Queue Implementation & Example

    Apr 1, 2025 · In this Tutorial, we will discuss What is a Queue in Java, How to use it, Java Queue Example, Java Queue Methods & Queue Interface Implementation: A queue is a linear data structure …

  8. Java - Queue Interface - Online Tutorials Library

    The queue implements FIFO i.e. First In First Out. This means that the elements entered first are the ones that are deleted first. A queue is generally used to hold elements before processing them. Once …

  9. How to implement size-limited Queue that holds last N elements in Java ...

    Jul 23, 2025 · We can extend the LinkedList class that is available in Java and apply the necessary modifications to that class to create a size-limited queue in Java. I've modified the technique that …

  10. Queue (Java SE 11 & JDK 11 ) - Oracle

    In a FIFO queue, all new elements are inserted at the tail of the queue. Other kinds of queues may use different placement rules. Every Queue implementation must specify its ordering properties. The …