Hi All,
I am new to this community. I have few questions in my mind taking Interface
1) Interface can have variables and internally makes it public static and final. If we talk design wise where exactly we may need these variables?
And also in case an interface I1 extends another interface I2 then if I2 has a variable
public static final int testValI2=12;
so design wise this variable is accessible to I1. When we will be this kind of situation? Inheritance is the property of classes not of Interface so what does it exactly means when an interface is exteding another interface?
2) if Class A implements Interface I1 and interace has a variable which by default will be static? So when this variable be loaded as this is static?
Thanks
Shivkant