Дано:
1. class Voop { 2. public static void main(String[] args) { 3. doStuff(1); 4. doStuff(1, 2); 5. } 6. // insert code here 7. }
Какие строки, добавленные независимо друг от друга в строку 6, откомпилируются? (Выберите все подходящие.)
static void doStuff(int x, int... doArgs) { }
static void doStuff(int[] doArgs) { }
static void doStuff(int... doArgs, int y) { }
static void doStuff(int doArgs...) { }
static void doStuff(int... doArgs) { }
Please log in or register to have a possibility to add comment.
Please log in or register to have a possibility to add comment.