I have below 2 classes in different packages:
package chapter1.one;
strictfp class SuperClass
{
protected void testMe()
{
System.out.println("Testing myself!");
}
}
package chapter1.two;
import chapter1.one.*;
public class SubClass extends SuperClass
{
public void testIt()
{
this.testMe();
}
public static void main(String[] args)
{
SubClass o = new SubClass();
o.testMe();
o.testIt();
}
}
Ofcourse the superclass is accessible if I make it public, but when I make it strictfp (just to know what access level it supports), I get below error:
The type SuperClass is not visible.
So can I say that strictfp has the same access levels as that of default?
Here is the screenshot where I read it.