What is the use of varargs in Java?

Last Updated :
Discuss
Comments

What is the use of varargs in Java?

To return multiple values

To accept a variable number of arguments

To call a method multiple times


To pass a list


Share your thoughts in the comments