This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes abstract and strictfp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "abstract and strictfp " Watch "abstract and strictfp " New topic
Author

abstract and strictfp

radhika holani
Greenhorn

Joined: Mar 28, 2006
Posts: 29
Can a abstract modifier combined with Strictfp modifier?
Suchitra Bhat
Ranch Hand

Joined: Dec 30, 2005
Posts: 62
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

Joined: Dec 21, 2005
Posts: 70
TestStrict.java:3: illegal combination of modifiers: abstract and strictfp
public abstract strictfp void TestMethod();
1 error

hope this helps
Sandeep Vaid
Ranch Hand

Joined: Feb 27, 2006
Posts: 390
I completely agree with Suchitra Bhat .....
[ May 08, 2006: Message edited by: Sandeep Vaid ]
wise owen
Ranch Hand

Joined: Feb 02, 2006
Posts: 2023
Modifiers in Java.
radhika holani
Greenhorn

Joined: Mar 28, 2006
Posts: 29
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

Joined: Mar 27, 2006
Posts: 32
Java keywords are lower case, strictfp not Strictfp
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: abstract and strictfp