Skip to main content

Varargs in Java

Learn Varargs in Java (Advanced Java Concepts, Java) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

1. Introduction Varargs let a method accept zero or more arguments of one type, written as Type... Name and seen as an array inside the method.

More lessons in Advanced Java Concepts