Welcome
Welcome to <strong>Developer</strong>.

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, <a href="/profile.php?mode=register">join our community today</a>!

What is the function of keyword "strictfp" in Java?

Exchange experience in SCJP.

What is the function of keyword "strictfp" in Java?

Postby developer on Thu May 08, 2008 10:14 pm

For SCJP exam, you need to know only that strictfp is a keyword and can be used to modify a class or a method, but never a variable.

Marking a class as strictfp means that any method code in the class will conform to the IEEE754 standard rules for floating points. Without that modifier, floating points used in the methods might behave in a platform-dependent way. If you do not declare a class as strictfp, you can still get strictfp behavior on a method basis, by declaring a method as strictfp.
developer
Site Admin
 
Posts: 37
Joined: Thu Jan 31, 2008 8:26 pm

Return to SCJP

Who is online

Users browsing this forum: No registered users and 0 guests

cron