Home / MCQ Bank / Computer
Computer Collections Framework In Java

What is the primary difference between a `Queue` and a `Deque` in the Java Collections Framework?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option A • A `Queue` represents a single-ended queue, while a `Deque` represents a double-ended queue

Related Computer Questions

Examples of output devices are? What does the 'return' statement do in a function in C++? strval() Which word is used to stop the unpacking of a value in a tuple? What will be the output of the following C++ code? #include <iostream> #include <string> using namespace std; class B { int b; public: B(int i){ b = i; } }; class C { B b; public: C(int i){ b = B(i); } friend void show(); }; void show() { C c(10); cout<<"value of b is: "<<c.b.b<<endl; } int main(int argc, char const *argv[]) { show(); return 0; }