| Java FAQ | ||
| JSP FAQ | ||
| Servlet FAQ | ||
XyzWs Java FAQ:
What are restrictions using 'strictfp' in an interface?
Printer-friendly version |
Mail this to a friend
|
Advertisement
|
What are restrictions using strictfp in an interface?
The
strictfp interface MyInterface {
void method();
}
But a method declared in an interface must not be declared
interface MyInterface {
strictfp void method(); //compiler error
}
However, a method declared in an interface may be implemented by a method that
is declared
|