File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

strictfp

 
agrah upadhyay
Ranch Hand
Posts: 579
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone please explore some points and facts about strict needed for SCJP1.4
Thanx
 
Srinivasa Raghavan
Ranch Hand
Posts: 1228
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please have a look at this
 
sampath garapati
Ranch Hand
Posts: 39
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
strictfp is a keyword.
You can modify a class declaration using the keyword final, abstract,
or strictfp.
You�re free to use strictfp in combination with abstract or final.

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 don�t declare a class as strictfp, you can still get strictfp behavior on a method-by-method basis, by declaring a method as strictfp.

Abstract methods also cannot be marked as strictfp.

Remember, strictfp forces floating points (and any floating-point operations) to adhere to the IEE754 standard. With strictfp, you can predict how your floating points will behave regardless of the underlying
platform the JVM is running on. The downside is that if the underlying platform is capable of supporting greater precision, a strictfp method won�t be able to take advantage of it.

Instance variables cannot be marked strictfp.
 
agrah upadhyay
Ranch Hand
Posts: 579
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Sampath And Raghvan for claring my doubt.
I think it is necessary to only this much.Right?If so then
Thanx u very much again
[ September 29, 2005: Message edited by: agrah upadhyay ]
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic