123456789101112131415



Question 1: public class Barn {
public static void main(String[] args) {
new Barn().go("hi", 1);
new Barn().go("hi", "world", 2);
}
public void go(String... y, int x) {
System.out.print(y[y.length - 1] + " ");
}
}

What is the result?

1. hi hi
2. hi world
3. world world
4. Compilation fails.