Re: Clarification about strictfp.
Thursday, March 8, 2012 01:07 AM
strictfp is a non access modifies which is used with class and methods. Marking a class or methods as strictfp enforces IEEE 754 floating point standards. Without that modifier, floating points used in the methods might behave in a platform-dependent way. With strictfp, you can predict how your floating points will behave regardless of the underlying platform the JVM is running on. The downside is that if the underlying platform is capable of supporting greater precision, a strictfp method won't be able to take any advantage of it.