What will be the output of this Java snippet?

Last Updated :
Discuss
Comments

What will be the output of this Java snippet?

Java
int a = 5;
System.out.println(a++ + ++a);


11

12

10

13

Share your thoughts in the comments