• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

strictfp

 
Suhita Reddy
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
wht is the use of strictfp?
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First result of Google strictfp
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was in the midst of responding to this post a few hours ago, when there was a fire in our building and we all had to evacuate and go home for the day.

Anyway, as you saw from Barry's link, strictfp ensures consistent floating point behavior across different platforms. For details, see JLS - 15.4 FP-strict Expressions and JLS - 5.1.13 Value Set Conversion.

For the SCJP exam, know that strictfp can be applied to interfaces, classes (both top-level and nested), and methods (including main) -- but cannot be used in conjunction with abstract.
 
Suhita Reddy
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thnx 4 reply
 
Naseem Khan
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
marc that was quite sad news
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Naseem Khan:
marc that was quite sad news

I don't think it was too serious -- mostly a lot of smoke in the cafeteria. No one hurt, as far as I know. I expect we'll all be back in the building tomorrow.

or , depending on how you look at it.
 
Naseem Khan
Ranch Hand
Posts: 809
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good to see that nobody gets hurt

Naseem
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic