-
What are generic methods?
-
- Generic methods are methods that introduce their own type parameters
- Generic methods are the methods defined in a generic class
- Generic methods are methods that take void parameters
- Generic methods are the methods that extend generic class methods
- None of these
Correct Option: A
Generic methods are methods that introduce their own type parameters. This is similar to declaring a generic type, but the type parameter scope is limited to the method where it is declared. Static and non-static generic methods are allowed, as well as generic class constructors.