Kizspy Question: 30
(Choose 1 answer)
PUBIERI.OW.COM
What is the output of the following Java program?
interface A {
}
public int setValue(int value);
public class Main {
public static void main(String[] args) {
int value = 1;
A objA new A() {
}
public int setValue(int value) {
value++;
return value;
System.out.println(objA.setValue(++value));
}
A. 3
B. 1
C. 2
D. Compile error