What will be printed when the following program is run?
public class Print {
public static void main(String[] args) {
int i = 0;
addTwo(i++);
System.out.println(i);
}
static void addTwo(int i) {
i += 2;
}
}
Answers
Answered by
0
Answer:
- the printed statement is wrong
Similar questions