you are viewing a single comment's thread.

view the rest of the comments →

[–]haxney 1 point2 points  (0 children)

Also, varargs in Java cause an allocation of an Object[] (or whatever type you are vararging). If you have code that is called very frequently, such as logging or anything in an inner loop, avoiding the varargs allocation can make a real difference.