Question PRG-JAVA-0016
HardWhat is the output of this program?
public class Main {
public static void main(String[] args) {
int i = 1;
int j = i++;
System.out.println(i);
}
}
- A.
Error
- B.
3
- C.
Sign up free to see the answer and a step-by-step explanation.