3 Varags Flashcards

1
Q

What is varags?

A

Varags means variable arguments.

You can use a variable defined using
varargs as if it were a normal array. For example args.length and args[0] are legal.

Varags is an optional argument or multiple parameters. You can pass none or 100 of them. Same type? not sure?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly