✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Hier ist ein Ausschnitt der Javadoc-Dokumentation von BlockingQueue:
Summary of BlockingQueue methods
| Throws exception | Special value | Blocks | Times out | |
|---|---|---|---|---|
| Insert | add(e) | offer(e) | put(e) | offer(e, time, unit) |
| Remove | remove() | poll() | take() | poll(time, unit) |
| Examine | element() | peek() | not applicable | not applicable |
Wähle die zutreffenden Aussagen zur Verwendung der BlockingQueue-Methoden: