What is the exact evaluation of this java operation ? (just one line)?

Leo

New member
if you compile and run this:

int x = 1;
System.out.println( x++ != 0 ? 60/x : 0);

It prints 30

I want step by step explanation of what operations executes first and why.

Thanks
Sorry, not just the first operation, all of them to the last result.
 
Back
Top