Java / Modifiers
Explain strictfp keyword in Java.
The strictfp keyword is used to force the precision of floating point calculations (float or double) in Java conform to IEEE 754 standard, explicitly. Without using strictfp keyword, the floating point precision may vary depends on target platform's hardware and CPU's floating point processing capability. strictfp restricts floating-point calculations and ensuring same result on every platform while performing operations in the floating-point variable.
- The strictfp keyword can be applied for classes, interfaces and methods.
- strictfp keyword cannot be applied on abstract methods, variables or constructors.
- strictfp cannot be applied on interface methods and abstract classes.
- If an interface or class is declared with strictfp, then all methods and nested types within that interface or class are implicitly strictfp.
Dogecoin! Earn free bitcoins up to $250 now by signing up.
Earn bitcoins upto $250 (free), invest in other Cryptocurrencies when you signup with blockfi. Use the referral link: Signup now and earn!
Using BlockFi, don't just buy crypto - start earning on it. Open an interest account with up to 8.6% APY, trade currencies, or borrow money without selling your assets.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
More Related questions...