File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes native and strictfp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "native and strictfp" Watch "native and strictfp" New topic
Author

native and strictfp

ramya ray
Ranch Hand

Joined: Aug 11, 2006
Posts: 101
native and strictfp modifiers can not be used simultaneously AM I RIGHT?
I am cnforming as it is not specifically mentioned any where.
Matt Russell
Ranch Hand

Joined: Aug 15, 2006
Posts: 165
Originally posted by ramya ray:
native and strictfp modifiers can not be used simultaneously AM I RIGHT?

Oh yes. To quote the JLS:
"A compile-time error occurs if a method declaration that contains the keyword native also contains strictfp."
http://java.sun.com/docs/books/jls/third_edition/html/classes.html#8.4.3


Matt
Inquisition: open-source mock exam simulator for SCJP and SCWCD
 
Consider Paul's rocket mass heater.
 
subject: native and strictfp