aspose 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 Java 8 in Action this week in the Java 8 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: native and strictfp
 
Similar Threads
Native Methods
Words reserved but not used
Native Methods
abstract and strictfp
Method Modifier