Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Java Strictfp Keyword

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 311
    Comment on it

    Java Strictfp Keyword

    When operations on the floating-point variable are performed in Java, the precision may differ from one platform to another platform. To overcome this problem,Java programming language provide Strictfp Keyword which when used with class,method or interface ensures same result on any platform thereby providing better control over floating-point arithmetic.But this keyword cannot be used with constructor,abstract methods and variables.

    Synatx Example:

    • When used with class
    strictfp class A{}//strictfp applied on class 
    • When used with interface
    strictfp interface M{}//strictfp applied on interface 
    • When used with methods
    class A
    {  
      strictfp void m(){}//strictfp applied on method  
    }  

     

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: