RTFJD (the JavaDocs are your friends!) If you haven't read them in a long time, then RRTFJD (they might have changed!)
RTFJD (the JavaDocs are your friends!) If you haven't read them in a long time, then RRTFJD (they might have changed!)
RTFJD (the JavaDocs are your friends!) If you haven't read them in a long time, then RRTFJD (they might have changed!)
Campbell Ritchie wrote:Obviously your interning has changed the object s2 points to.
RTFJD (the JavaDocs are your friends!) If you haven't read them in a long time, then RRTFJD (they might have changed!)
Campbell Ritchie wrote:I appear to be mistaken; maybe the String in question was moved into the constant pool.
Campbell Ritchie wrote:There are three other overloaded operators: & ^ |. Those bitwise operators are overloaded for use on booleans too. The correct meaning of the term, “no operator overloading” is that a user cannot overload operators themselves.
RTFJD (the JavaDocs are your friends!) If you haven't read them in a long time, then RRTFJD (they might have changed!)
That may mean that the behaviour isn't strictly defined and might change in future versions. Just as the constant pool has moved.Jesse Silverman wrote:. . . the JLS in 3.10.5 does not show or say what happens in this case:
. . .
You mean we should avoid side‑effects anyway?Occasionally you want to evaluate both operands regardless, so it is legal, tho rare to use them on boolean expressions with side-effects.
Campbell Ritchie wrote:
That may mean that the behaviour isn't strictly defined and might change in future versions. Just as the constant pool has moved.Jesse Silverman wrote:. . . the JLS in 3.10.5 does not show or say what happens in this case:
. . .
Campbell Ritchie wrote:
You mean we should avoid side‑effects anyway?Jesse Silverman wrote:Occasionally you want to evaluate both operands regardless, so it is legal, tho rare to use them on boolean expressions with side-effects.
RTFJD (the JavaDocs are your friends!) If you haven't read them in a long time, then RRTFJD (they might have changed!)
I’m tired of walking, and will rest for a minute and grow some wheels. This is the promise of this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|