i got a question like that :
1) interface Foo{
2) int k=0;
3) }
4) public class
Test implements Foo{
5) public static void main(Stringargs[]){
6) int i;
7) Test test =new Test();
8) i=test.k;
9) i=Test.k;
10) i=Foo.k;
11) }
12) }
what is the result?
it seems that after implements the interface Foo .its possible to access the int k by class name,but why?
Dos class Test become static ?