Number | Base of difference | Generic Queue | Non-Generic Queue |
1 | Type | Generic Queue is type-safe. | When we say about the Non-Generic Queue it is not type-Safe. |
2 | Type of elements | In Generic Queue we can only store same type of elements in Generic Queue. | But in Non-Generic Queue we can store same type or different type elements. |
3 | Namespace | When we say about the Namespace Generic Queue is defined under System.Collections.Generic namespace. | When we say about the Namespace in Non-Generic Queue. Non-Generic queue is defined under System.Collections namespace. |
4 | Define type | In Generic Queue we need to define the type of the elements in the queue. | When we say about the Non-Generic Queue we need not to define the type of elements in the queue. |