EXPLAIN ABOUT STRICTFP KEYWORD IN JAVA ?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
Java 
 764  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    explain about strictfp keyword in Java ?

    If we want floating point values to be consistent across platforms, then we need to use "strictfp" as per IEEE 754 standard. When a program runs on multiple platforms, precision of floating point differ which in turn given different results. strictfp helps to enforce the precision across all platforms. For example:
    Class Level - public strictfp class StrictFpModifierExample{}
    Method Level - public strictfp void example() {}

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!