What will be the output of below Java code?

Example Code: 

public class A
{
    public void m1()
    {
        System.out.println("A");
    }
}

public class B extend A
{
    public void m1()
    {
        System.out.println("B");
    }
}

public class C extends B
{
    public void m1()
    {
        System.out.println("C");
    }
}

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

Output: 
Line 1: C
Line 2: C
Line 3: C