Page 1 of 1

About Question com.enthuware.ets.scjp.v6.2.340 :

Posted: Wed Feb 23, 2011 9:44 pm
by ETS User
Explanation:
In the case of i == f, value of i will be promoted to a float i.e. 5.0, and so it returns false.
= 8 and int( f +d) => int (5.5 + 3.8) => int(9.3) => 9, so this also return false.
So, c is not incremented at all. Hence c remains 'a'.
I think your explanation needs to be restated. The "=8" part is quite confusing.
thank you

Re: About Question com.enthuware.ets.scjp.v6.2.340 :

Posted: Sun Feb 27, 2011 6:17 am
by admin
Fixed.