Reviewed with answer from my quiz, I want to make sure that I understand it right? If not, what is yours?

int x=1;

int j;

for(j=0; j<=2; j++)

x=x*j;

System.out.print(x);

---------------------

answer is x=0

My understanding is since this for loop has no curly bracket, therefore, no loop after the first one. So the math is: x=1*0= 0. Am I right?