I was going through code walk through in which I have discovered that an interface was used for constants declaration but the thing that I have found that in interface are like below..
public interface abcConstants extends Serializable
{
int def = 4;
int efg = 7;
}
Please let me know that it is correct as per my knowledge constants should have publis static final too..!!
All declared variables in interfaces are
public static final.Methods in interfaces are
public abstract.Adding the above keywords in front of the variables or methods in interfaces is redundant, but may help reading the code.