About 296,000 results
Open links in new tab
  1. Queue Interface In Java - GeeksforGeeks

    6 days ago · In Java, the Queue interface is a subtype of the Collection interface and represents a collection of elements in a specific order. It follows the first-in, first-out (FIFO) principle. This means that the elements are retrieved in the order in which they were added to the queue.

  2. Queue (Java Platform SE 8 ) - Oracle Help Center

    Besides basic Collection operations, queues provide additional insertion, extraction, and inspection operations. Each of these methods exists in two forms: one throws an exception if the operation fails, the other returns a special value (either null or false, depending on the operation).

  3. Java Queue Interface - Programiz

    The Queue interface of the Java collections framework provides the functionality of the queue data structure. It extends the Collection interface.

  4. Guide to the Java Queue Interface - Baeldung

    Jan 8, 2024 · In this tutorial, we’ve taken a deep dive into the Java Queue interface. Firstly, we explored what a Queue does, as well as the implementations that Java provides. Next, we looked at a Queue’s usual FIFO principle, as well as the PriorityQueue which differs in its ordering.

  5. Java Queue tutorial - W3schools

    Queue operations. enqueue(): Insert an item to the queue. dequeue(): Remove an item from the queue. peek(): Get the top data element of the queue, without removing it. isFull(): Check if queue is full. isEmpty(): Check if queue is empty. Queue states

  6. Java Queue: From Fundamentals to Mastery - HowToDoInJava

    Aug 3, 2023 · Learn Queue data structure and the Java Queue interface and implementations with practical examples such as LinkedList, PriorityQueue and ArrayDeque.

  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 or a collection in Java that stores elements in a FIFO (First In, First Out) order.

  8. Java Queue - Online Tutorials Library

    Learn about Java Queue, its implementation, and key methods for managing a collection of elements in a first-in-first-out (FIFO) order. Discover the Java Queue interface, including key functionalities and practical applications for efficient data handling.

  9. The Queue Interface (The Java™ Tutorials > Collections - Oracle

    A Queue is a collection for holding elements prior to processing. Besides basic Collection operations, queues provide additional insertion, removal, and inspection operations. The Queue interface follows. E element(); boolean offer(E e); E peek(); E poll(); E remove();

  10. Java Queue Collection Tutorial and Examples - CodeJava.net

    This Java Queue tutorial helps you understand the concepts and be able to use Queue implementations (LinkedList, PriorityQueue, Deque...) in the Java Collections Framework. Here’s the table content of this tutorial: 1. What is Queue? 2. Characteristics of Queue. 3. Behaviors of Queue. 4. Queue’s Interfaces. 5. Major Queue’s Implementations. 1.

  11. Some results have been removed
Refresh