strictfp and native keyword usage on declaring Interface methods

Hello,I would be grateful if someone could explain why the strictfp and native keywords are not allowed when declaring interface methods.Source: SCJP 1.5 Kathy Sierra, p.21Thanks in advance,Kunid
[237 byte] By [Kunida] at [2007-11-27 7:46:59]
# 1

> Hello,

>

> I would be grateful if someone could explain why

> the strictfp and native keywords are not allowed

> when declaring interface methods.

Because those are related to the implementation, not to the interface. If I say public String foo(String bar, int baz); it doesn't matter if it's implemented as a native method or in pure Java, just as it doesn't matter if it uses a LinkedList or ArrayList behind the scenes.

Interfaces only define WHAT you can do, not HOW you do it.

jverda at 2007-7-12 19:28:01 > top of Java-index,Java Essentials,Training...
# 2
Thank you very much!Kind regards,Kunid
Kunida at 2007-7-12 19:28:01 > top of Java-index,Java Essentials,Training...