J2SE Question:

Download Job Interview Questions and Answers PDF

What is generic?

J2SE Interview Question
J2SE Interview Question

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.

Download J2SE Interview Questions And Answers PDF

Previous QuestionNext Question
What is formal parameter list?What is Java Compatibility Kit (JCK)?