187k views
3 votes
Which statement is false?

a) Each type parameter list contains one or more type parameters, separated by commas.
b) A type parameter name must be unique among different generic methods.
c) The type parameters act as placeholders for the types of the arguments passed to a method.
d) The type parameter names throughout the method declaration must match those declared in the type parameter list.

User Swandog
by
5.4k points

1 Answer

2 votes

Answer:

b) A type parameter name must be unique among different generic methods.

Step-by-step explanation:

These statements are true

Each type parameter list contains one or more type parameters, separated by commas.

The type parameters act as placeholders for the types of the arguments passed to a method.

The type parameter names throughout the method declaration must match those declared in the type parameter list.

But

A type parameter name may be different among different generic methods.

User R Earle Harris
by
5.7k points