It's not a secret anymore!
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes native and strictfp Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: native and strictfp
 
Similar Threads
Native Methods
abstract and strictfp
Method Modifier
Native Methods
Words reserved but not used