What will be the output of below Java code?

Example Code: 

public class A
{
    int i = 999;
    System.out.println(i);
}

public class B extends A
{
    int i = 777;
    System.out.println(i);
}

public class C extends B
{
    int i = 888;
    System.out.println(i);
}

public class Test
{
    public void main(String args[])
    {
        C c = new C();
        c.i;               //Line :- 1
       ((B)c).i;        //Line :-2
       ((A)(B)c).i;   //Line :- 3
    }
}

Output

Line 1:- 888
Line 2:- 777
Line 3:- 999