Browsing tag: variable argument

varargs in java

“varargs” argument in Java Methods


Earlier we discussed on method overloading, it gives same method name and differ by method signature.  If we are not sure about number of argument(but same type) for the method,  we can’t write one method of each combination of argument list.  Code quality recommends maximum 4 overloaded method(with same name) for easy to use and