Hi Folks,
I've been stuyding up on interfaces recently and noticed that in the K&B book it explicitly states that interface methods are abstract, and therefore they cannot be marked as strictfp. This is true. However, the interface itself can be marked as strictfp. Also, abstract classes can also be marked as strictfp. However, abstract methods in an abstract class cannot be marked strictp. So I googled (wow, it's a verb now) to see what I could find. This was the explanation
strictfp is okay on an interface. It is okay because you can evaluate compile-time constants using strictfp rules within an interface.
Can somebody explain this to me? I'm a bit confused now as to why abstract classes/interfaces can have the non-access modifier strictfp but not methods. Thanks!
Andreas
[ September 27, 2005: Message edited by: Andreas Sandberg ]