0
What is the output of the following Java program?
public class Main {
static int count(int... a) { return a.length; }
public static void main(String[] args) {
System.out.println(count() + " " + count(1, 2) + " " + count(new int[]{4, 5, 6}));
}
}- A0 2 3
- B1 2 3
- C0 2 1
- DCompilation error
Correct answer: A