This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

abstract and strictfp

 
radhika holani
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can a abstract modifier combined with Strictfp modifier?
 
Suchitra Bhat
Ranch Hand
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Abstract methods can not be marked as strictfp, as strictfp is a modifier describing some thing about the implementation where as abstract methods define the signature, return type but nothing about the implementation.

And i think abstract classes can be declared as strictfp.

Thanks,
Suchitra
 
vivekkumar sharma
Ranch Hand
Posts: 70
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
TestStrict.java:3: illegal combination of modifiers: abstract and strictfp
public abstract strictfp void TestMethod();
1 error

hope this helps
 
Sandeep Vaid
Ranch Hand
Posts: 392
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I completely agree with Suchitra Bhat .....
[ May 08, 2006: Message edited by: Sandeep Vaid ]
 
wise owen
Ranch Hand
Posts: 2023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Modifiers in Java.
 
radhika holani
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i tried running program

public abstract class IllegalClass{
public Strictfp abstract void doIt();
}

it gave me err
IllegalClass.java:2: <identifier> expected
public Strictfp abstract void doIt();
^
1 error
AND NOT "Illigal Combination of modifiers"
 
Kristian Perkins
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java keywords are lower case, strictfp not Strictfp
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic