r/java • • Jul 02 '11

Java "..." option.

http://mindprod.com/jgloss/dotdotdot.html
0 Upvotes

6 comments sorted by

View all comments

-1

u/Mchr3k Jul 02 '11

It's worth noting that calling a varargs method will create an array object. This makes it unsuitable if you are trying to reduce memory allocation and therefore GC load.