43. What will be the output of the following code?
interface Foo{
int k=0;
}
public class Test implements Foo{
public static void main(String args[]){
Test test =new Test();
System.out.print(test.k + " ");
System.out.print(Test.k + " ");
System.out.println(Foo.k);
}
}
Select 1 correct answer:
A. 0 0 0
B. A runtime exception is thrown.
C. The code does not compile.