on public static members in java interface definition - say what?
At work, I've seen some Java code that defines an interface similar to this.
public interface ITestme {
public static String Name="Agile";
}
throws a warning if you don't initialize the member?!
and then, they refer to it as...
public class TestMeUser implements ITestme {
public void TestMethod()
{
String name = ITestme.Name;
System.
out.println(name);
}
}
looks to me that it's more of a enum rather than an interface.
Everybody(well almost) who writes C# code knows that it isn't necessary(I think it's a syntax error) to include the access modifier for the fact that all C# interface members are implicitly public. So, does Java have a different definition of what an Interface is or is this some sort of an old school approach that wasn't taken out as Java moved up with different versions.