devxlogo

August 15, 2019

Variable Arguments in Java

Moving away from the age old way of fixed arguments, Java supports variable arguments. The code sample below illustrates variable arguments. If the method has multiple arguments, it is mandatory