Organizational Research By

Surprising Reserch Topic

when do you use varargs in java


when do you use varargs in java  using -'java,varargs'

I'm afraid of varargs. I don't know what to use them for.

Plus, it feels dangerous to let people pass as many arguments as they want.

What's an example of a context that would be a good place to use them?
    

asked Sep 10, 2015 by SonM24wvwcug
0 votes
6 views



Related Hot Questions

8 Answers

0 votes
NULL
answered Sep 10, 2015 by ShelaSievwri
0 votes
NULL
answered Sep 10, 2015 by OdellVanzett
0 votes
NULL
answered Sep 10, 2015 by RobertoWilia
0 votes
NULL
answered Sep 10, 2015 by GayeReichste
0 votes
NULL
answered Sep 10, 2015 by MilCremor
0 votes
NULL
answered Sep 10, 2015 by MelCrowley
0 votes
NULL
answered Sep 10, 2015 by CarHedge
0 votes
NULL
answered Sep 10, 2015 by GeorgePYQYry

...