Ternary Operator Java SE 8 Programmer I question2

class TernaryOperator
{
public static void main(String args[])
 {
int a=10;
int b=10;

int sum=a++?1:2;

 }

}

Will it compile ?

Comments