Kizspy | Question: 50
(Choose 1 answer)
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