File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

strictfp doubt

 
Kaarthick Ramamoorthy
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
interface Perform
{
public strictfp abstract void add(double a, double b);
public strictfp abstract void sub(double a, double b);
}

why strictfp is not allowed here?.
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
strictfp is an implementation detail, so it only allowed to be used in the classes that implement the interface. That is, you cannot force the implementor of your interface to use the strictfp feature.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic