File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "abstract and strictfp " Watch "abstract and strictfp " New topic

abstract and strictfp

radhika holani

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.

vivekkumar sharma
Ranch Hand

Joined: Dec 21, 2005
Posts: 70 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: 392
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

Joined: Mar 28, 2006
Posts: 29
When i tried running program

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

it gave me err <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:
subject: abstract and strictfp
It's not a secret anymore!