Kizspy | Question: 41
(Choose 1 answer)
What is a constraint in Generics?
A. It allows multiple type parameters in a generic class or method.
B. It restricts the types that can be used as arguments in a generic class or method.
C. It enables type casting automatically in generic classes or methods.
D. It prevents the use of value types in generic methods.