Varargs is the feature that allows a method to accept variable number of parameters. The JLS (Java Language Specification) calls it a Variable Arity Method; I guess they are called varargs because ...
Using generics results in more robust code and avoids ClassCastExceptions in your Java programs. This in-depth tutorial introduces you to generics and their types and methods. Generics are used in ...