Showing posts with label java strictfp modifier. Show all posts
Showing posts with label java strictfp modifier. Show all posts

Java - strictfp modifier / Chapter -4/ Access Modifier



Java strictfp modifier



  • strictfp modifier introduced in 1.2v.

  • We can declare strictfp for classes and methods but not for variables. 
    Usually, the result floating point arithmetic is varied from platform to platform. If we want to platform independent result for floating point arithmetic then we should go for the strictfp modifier.  




    1.strictfp( ):-

    • If a method declared as strictfp( ) all floating point calculation in that method has to follow IEEE 754 standard.So that we will get platform independent results.

    • abstract modifier never talks about implementation where as strictfp method always talks about implementation hence abstract strictfp combination is illegal for methods.


Flipkart End Of Season Sale






© Copyright 2017 Javabychetan.blogspot.com