List vs Queue vs Set vs Map
List vs Queue vs Set vs Map
List | Queue | Set | Map | |
Duplicates | Yes | Yes | No | No(Allow duplicate values not keys) |
Order | Yes | Yes | No | No |
Null values | Yes | Priority queue doesn't allow, but queue using LinkedList allows null | Single null | Single null key and many null values |