Given:
1. class Voop {
2. public static void main(String[] args) {
3. doStuff(1);
4. doStuff(1,2);
5. }
6. // insert code here
7. }
Self Test Answers 79
80 Chapter 1: Declarations and Access Control
Which, inserted independently at line 6, will compile?
发布于 2021-02-15 03:24:30
【单选题】 A static void doStuff(int... doArgs) { } B static void doStuff(int[] doArgs) { } C static void doStuff(int doArgs...) { } D static void doStuff(int... doArgs, int y) { }