Example of strictfp sensitive JVM
<p>We all pretty much know how <strong>strictfp</strong> works.</p>

<p>Something like this:</p>

<pre><code>package com.hk.basicjava.tests.strictfp;

import java.util.*;

public class StrictFP {
    public static void main(String[] argv) {
        double d = Double.MIN_VALUE; 
        System.out.println("non strictfp : " + notStrictFP(d)); // may be 4.9E-324
        System.out.println("strictfp : " + strictFP(d)); // should be 0
    }

    static double notStrictFP(double a) {
        return (a / 2 ) * 2;
    }
    static strictfp double strictFP(double a) {
        return (a / 2 ) * 2 ;
    }
}
</code></pre>

<p>But, does any one know <strong>particular hardware/OS</strong> (and maybe JRE) <strong>combination</strong> where there is a difference in results returned by methods with and without <strong>strictfp</strong> specifiers?</p>

<p>I tried several combinations, but there was no difference.</p>
