In Monster class, frighten() method prints "arrrgh" and has return type true. What does this mean ? Will it print "arrrgh" and return true , does it mean that "arrrgh" will be printed on screen ?
In Vampire class, frighten() method prints "a bite" and has return type false. What does this mean ? Will it print "a bite" and return false , does it mean that "a bite" will not be inted on screen ?
In Dragon class, frighten() method prints "breath fire" and has return type true. What does this mean ? Will it print "breath fire" and return true , does it mean that "breath fire" will be printed on screen ?
SCJP 6, OCMJD 6, OCPJWSD 6
I no good English.
No, the principal factor determining order of execution is the left‑to‑right rule. I haven't got the energy to chase through the JLS (=Java® Language Specification) and look for it.Martin Vanyavchich wrote:. . . in Java things get executed from most inward parenthesis out . . .
Don't get me started about those stupid light bulbs. |