phil sohar wrote:from kathy ............
page no 46........
it can modify a class or method declaration, and that a variable can never be declared strictfp............
It's correct, If it is used for a method or a class, Strictfp ensures that you get exactly the same results from your floating point calculations on every platform. If you don't use strictfp, the JVM implementation is free to use extra precision where available.
phil sohar wrote:
but in examlab.........the answer say..........strictfp can be used for instance variable and class.....
which one is correct
Definitely strictfp can't be used for variable, I've done ExamLab, but I don't remember this answer, let see, what Devaka say.....