Question 1
Which of the following statements about varargs are true?
A. A method may declare at most one varargs parameterCorrect answer
True: a method may declare only one varargs parameter (JLS 8 §8.4.1).
B. The varargs parameter must be the last parameterCorrect answer
True: the varargs parameter must come last in the parameter list (JLS 8 §8.4.1).
C. Callers must pass at least one value for the varargs parameter
False: zero arguments is fine — the method then receives an empty array, never null.
D. Inside the method, the varargs parameter behaves as an arrayCorrect answer
True: inside the method body the varargs parameter is an ordinary array, with length and indexes.
Explanation
One varargs per method, always last, and the method body sees it as an ordinary array with length and indexes — those three are true. Zero arguments is fine: the method receives an empty array, never null, so `Callers must pass at least one value for the varargs parameter` is false.