First page Back Continue Last page Overview Text

Notes:


Only the last argument can be a vararg

In APIs, sparingly
─ Only when the benefit is compelling
─ Don't overload a varargs method
• In clients, when the API supports them
─ reflection, message formatting, printf

Varargs automates and hides the process
─ Can retrofit existing APIs
─ Upward compatible with existing clients