Sail E0 Webinar
Question
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); }}
Options:
A .  Compile with error
B .  None of these
C .  12
D .  10
E .  Runtime Exception
Answer: Option A

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers