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?
About Question enthuware.ocpjp.v7.2.1468 :
Moderators: Site Manager, fjwalraven
-
- Posts: 3
- Joined: Thu Jul 04, 2013 11:19 pm
- Contact:
-
- Site Admin
- Posts: 10402
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1468 :
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.
HTH,
Paul.
-
- Posts: 54
- Joined: Thu Mar 03, 2016 1:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1468 :
concise(...) you are essentially providing an implementation of the method declared in that interface but in a very consize manner.

-
- Site Admin
- Posts: 10402
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1468 :
Fixed.
thank you for your feedback!
thank you for your feedback!
Who is online
Users browsing this forum: No registered users and 2 guests