An interface can only contain method and not variables
SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJD, SCEA/OCMJEA
Live life to an interface, not an implementation!
SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCJD, SCEA/OCMJEA
Live life to an interface, not an implementation!
Tony Morris
Java Q&A (FAQ, Trivia)
"I'm not back." - Bill Harding, Twister
Tony Morris
Java Q&A (FAQ, Trivia)
"I'm not back." - Bill Harding, Twister
So, still no actual evidence of your claim "and they do the opposite too."?
Bloch and Gafter aside (is that who you were thinking of?), I've personally known a few others who impress me as being pretty smart.
Anyway, sincd this is the SCJP forum: for those of you who just want to pass the test, I don't believe the exam will explicitly try to test you on this particular point. Though they may possibly, at some point, use the term "variable" in a way Tony doesn't approve of. Try not to panic if this happens. Just read the rest of the question, and answer it. It's not that big a deal, really.
Tony Morris
Java Q&A (FAQ, Trivia)
"I'm not back." - Bill Harding, Twister
No matter. Try again. Fail again. Fail better. This time, do it with this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|