- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
strictfp Keyword in Java programming
strictfp is used to ensure that floating points operations give the same result on any platform. As floating points precision may vary from one platform to another. strictfp keyword ensures the consistency across the platforms.
strictfp can be applied to class, method or on interfaces but cannot be applied to abstract methods, variable or on constructors. Following are the valid examples of strictfp usage.
Example
strictfp class Test { } strictfp interface Test { } class A { strictfp void Test() { } }
Example
Following are the invalid strictfp usage.
class A { strictfp float a; } class A { strictfp abstract void test(); } class A { strictfp A() { } }
- Related Articles
- Java strictfp keyword
- static Keyword in Java programming
- Override Keyword in C++ programming
- Loop Keyword in Rust Programming
- const keyword in Dart Programming
- final keyword in Dart Programming
- Super keyword in Dart Programming
- This keyword in Dart Programming
- Yield keyword in Ruby Programming
- Asynchronous programming in C# using Async and Await keyword
- New keyword in Java
- This keyword in Java
- super keyword in Java
- final keyword in Java
- instanceof Keyword in Java

Advertisements