InterviewSolution
| 1. |
What Is Generic ? |
|
Answer» A class, interface, or method that declares one or more type variables. These type variables are known as type parameters. A generic DECLARATION DEFINES a set of parameterized types, one for each POSSIBLE invocation of the type parameter section. At runtime, all of these parameterized types share the same class, interface, or method. A class, interface, or method that declares one or more type variables. These type variables are known as type parameters. A generic declaration defines a set of parameterized types, one for each possible invocation of the type parameter section. At runtime, all of these parameterized types share the same class, interface, or method. |
|