please solve this What will be the output of following snippet? int a =2; a++; System.out.println(a); *
2
1
4
3
Answers
Answered by
2
Output:
3
Explanation:
Initially, a = 2, then it is incremented by 1, so a becomes 3.
Similar questions