SCJP 1.4, SCBCD 1.3
"A member interface is implicitly static"
Tony Morris
Java Q&A (FAQ, Trivia)
42
"I'm not back." - Bill Harding, Twister
SCJP 1.4, SCBCD 1.3
Tony Morris
Java Q&A (FAQ, Trivia)
A final is not synonymous with a constant
SCJP 1.2, SCJP 1.4, SCJA, SCWCD 1.4<br /> <br />------------------------------<br />
"I'm not back." - Bill Harding, Twister
Tony Morris
Java Q&A (FAQ, Trivia)
An interface member is not a constant - it is public static and final. This is not the same as a constant.
All variables defined in an interface must be coderanch, static and final - in other words interfaces can declare only constants and not instance variables.
Can u both confirm this.
Tony Morris
Java Q&A (FAQ, Trivia)
A magnificient life is loaded with tough challenges. En garde tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
|