which is the value of x and y after running this code? class a { public static void main(String args[]) { int x=1; int y=x++; } }
x=1 and y=1
x=1 and y=2
x=2 and y=2
x=2 and y=1