Page 1 of 1

About Question enthuware.ocpjp.v7.2.1468 :

Posted: Thu Jul 04, 2013 11:43 pm
by arthoor
Surprisingly, the explanation provided is incorrect: y can be greater than x, but not the other way (tested with java 1.7.0_25).
Could you explain why variables are incremented in a reversed order?

Re: About Question enthuware.ocpjp.v7.2.1468 :

Posted: Fri Jul 05, 2013 5:54 am
by admin
The explanation is correct. It is just showing a hypothetical situation where the x and y are different. It is a possible output. Other outputs such as the one you observed are also possible.

HTH,
Paul.

Re: About Question enthuware.ocpjp.v7.2.1468 :

Posted: Thu Mar 10, 2016 10:21 am
by javalass
(...) you are essentially providing an implementation of the method declared in that interface but in a very consize manner.
concise ;)

Re: About Question enthuware.ocpjp.v7.2.1468 :

Posted: Thu Mar 10, 2016 10:06 pm
by admin
Fixed.
thank you for your feedback!