A
Q. What will be the output for the below code?
public interface TestInf{
int i =10;
}
public class Test{
public static void main(String... args){
TestInf.i=12;
System.out.println(TestInf.i);
}
}
- Correct Answer - Option(A)
- Views: 9
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.