Question 1
You can create a blocking queue using ________.
◦ ArrayBlockingQueue
◦ PriorityBlockingQueue
◦ LinkedBlockingQueue
◦ PriorityQueue
Question 2
Which of the following statements are true?
◦ A blocking queue causes a thread to block when you try to remove an element from an empty queue.
◦ A blocking queue has a capacity.
◦ A blocking queue causes a thread to block when you try to add an element to a full queue.
◦ The BlockingQueue interface is the base interface for all concrete blocking queue classes.
◦ The BlockingQueue interface provides the synchronized put and take methods for adding an element to the head of the queue and for removing an element from the tail of the queue,