Help the world stop coronavirus! Stay home!

Prev Next

Java / Modifiers

Explain strictfp keyword in Java.

The strictfp keyword is used to force the precision of floating point calculations (float or double) in Java conform to IEEE 754 standard, explicitly. Without using strictfp keyword, the floating point precision may vary depends on target platform's hardware and CPU's floating point processing capability. strictfp restricts floating-point calculations and ensuring same result on every platform while performing operations in the floating-point variable.

  • The strictfp keyword can be applied for classes, interfaces and methods.
  • strictfp keyword cannot be applied on abstract methods, variables or constructors.
  • strictfp cannot be applied on interface methods and abstract classes.
  • If an interface or class is declared with strictfp, then all methods and nested types within that interface or class are implicitly strictfp.

❤Cash Back At Stores you Love !!!❤

Earn your $10 reward when you make your first purchase through Ebates by signing up with clicking below button.

Ebates Coupons and Cash Back

More Related questions...

Show more question and Answers...


Comments & Discussions