The effect of the strictfp modifier is to make all float or double expressions within the class declaration be explicitly FP-strict (�15.4). This implies that all methods declared in the class, and all nested types declared in the class, are implicitly strictfp. Note also that all float or double expressions within all variable initializers, instance initializers, static initializers and constructors of the class will also be explicitly FP-strict.
...strictfp forces floating points (and any floating-point operations) to adhere to the IEEE745 standard. With strictfp, you can predict how yoru floating points will behave regardless of the underlying platform the JVM is running on... For the exam, however, you don't need to know anything about strictfp other than what its used for, that it can modify a class or a nonabstract method declaration, and that a variable can never be declared strictfp.
[ December 18, 2002: Message edited by: Jessica Sant ]
Joined: Sep 19, 2002
I havent seen this explanation in any book. Thanks again Jessica !