This week's giveaway is in the Testing forum. We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line! See this thread for details.
Which of the given declarations are incorrect? A)public final static float f(); B)abstract int i; C)transient double d=36.4; D)friendly void question() The given answers were B) D). BUt i think it should be A) B) D).Because we cannot declare public final static float f(); without a method body. Is it right???
Roll is correct, I think. I like Paul's idea about the declaration maybe being part of an interface, as it would make the method implicitly abstract and so no method body would be necessary - but then the "final" modifier would be illegal. As would the "static", for that matter. So A is incorrect either way.
"I'm not back." - Bill Harding, Twister
Anything worth doing well is worth doing poorly first. Just look at this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss